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

Add tests for the other kinds of schema #22

Merged
merged 1 commit into from
Aug 30, 2024
Merged

Conversation

AislingHPE
Copy link
Contributor

This tests to make sure that the additionalProperties: false and --nullable-all schemas validate different sets of values to to the ones that are validated by the default schema.json.

In particular, schema-nullable-all.json should (unless disallowed by certain fields such as enum) all a file with all variables defined as null. schema-disallow-additional.json should disallow additional properties, including within nested objects.

@AislingHPE AislingHPE force-pushed the test-test-data-2 branch 3 times, most recently from 41e42c1 to 0a40089 Compare August 30, 2024 13:46
@AislingHPE AislingHPE marked this pull request as ready for review August 30, 2024 13:46
eamonnotoole
eamonnotoole previously approved these changes Aug 30, 2024
This tests to make sure that the `additionalProperties: false` and `--nullable-all` schemas validate different sets of values to to the ones that are validated by the default `schema.json`.

In particular, `schema-nullable-all.json` should (unless disallowed by certain fields such as `enum`) all a file with all variables defined as `null`.  `schema-disallow-additional.json` should disallow additional properties, including within nested objects.
@AislingHPE AislingHPE merged commit 5560763 into main Aug 30, 2024
2 checks passed
@AislingHPE AislingHPE deleted the test-test-data-2 branch August 30, 2024 13:51
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