Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature json schema #56

Merged
merged 6 commits into from
May 1, 2024
Merged

Feature json schema #56

merged 6 commits into from
May 1, 2024

Conversation

brynpickering
Copy link
Contributor

@brynpickering brynpickering commented Apr 23, 2024

Fixes #55.

Using a JSON schema to validate the configuration. This allows us to catch config errors early and so increase the robustness of the downstream functions (they can expect a clean configuration file as an input).

Also rendered the JSON in the documentation, which includes a long description for every configuration option. Would be worth checking @val-ismaili whether I've got those description right...

Checklist

Any checks which are not relevant to the PR can be pre-checked by the PR creator.
All others should be checked by the reviewer(s).
You can add extra checklist items here if required by the PR.

  • CHANGELOG updated
  • Tests added to cover contribution
  • Documentation updated

Copy link
Contributor

@mfitz mfitz left a comment

Choose a reason for hiding this comment

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

Looks good. I've made a couple of very minor remarks, but nothing that should delay merging. Also nice to see Adobe contributing useful open-source libraries!

docs/static/hooks.py Show resolved Hide resolved
src/osmox/config.py Outdated Show resolved Hide resolved
src/osmox/config.py Outdated Show resolved Hide resolved
src/osmox/config.py Outdated Show resolved Hide resolved
tests/fixtures/test_config_infill.json Outdated Show resolved Hide resolved
@val-ismaili
Copy link
Contributor

The configuration options descriptions seem good to me. This is a nice idea as the config file has continued to grow.

@brynpickering brynpickering requested a review from mfitz May 1, 2024 10:34
Copy link
Contributor

@mfitz mfitz left a comment

Choose a reason for hiding this comment

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

👍

@brynpickering brynpickering merged commit 7202670 into main May 1, 2024
12 checks passed
@brynpickering brynpickering deleted the feature-json-schema branch May 1, 2024 14:07
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.

Validate with schema
3 participants