Skip to content

Conversation

@blowekamp
Copy link
Member

@blowekamp blowekamp commented Jun 3, 2025

Add pre-commit json validation, and use script to validate json before the build process.

@blowekamp blowekamp requested a review from zivy June 3, 2025 16:05
Copy link
Member

@zivy zivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the "description" fields, some end with a period, some don't. Possibly make consistent, but can be ignored. Actual change requests are inline comments.

@blowekamp blowekamp changed the title Json schema Add formal JSON schema a Jun 4, 2025
@blowekamp blowekamp marked this pull request as ready for review June 4, 2025 19:23
@blowekamp blowekamp requested a review from zivy June 4, 2025 19:24
@blowekamp blowekamp changed the title Add formal JSON schema a Add formal JSON schema Jun 4, 2025
@blowekamp blowekamp force-pushed the json_schema branch 2 times, most recently from 37092de to ec91eab Compare June 4, 2025 20:27
blowekamp added 3 commits June 5, 2025 09:42
Also add pre-commit check for validation
The old name was not converted from PYTHON_VERSION_STRING when the
CMake Python module was changed.
@blowekamp blowekamp force-pushed the json_schema branch 2 times, most recently from 67ccc03 to 154230c Compare June 5, 2025 18:03
blowekamp added 3 commits June 5, 2025 15:22
Use the new module to check for the jsonschema package
Add separate configuration variable for the python executable used to
do json validation (jinja template expantion).

Running the validation requires Python with the jsonschema module, if
it's not unstalled then validation does not occour during the build
process.
@blowekamp blowekamp merged commit c036e1e into SimpleITK:master Jun 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants