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

Config to set additionalProperties=false by default #267

Open
dsample opened this issue Aug 23, 2018 · 0 comments
Open

Config to set additionalProperties=false by default #267

dsample opened this issue Aug 23, 2018 · 0 comments

Comments

@dsample
Copy link

dsample commented Aug 23, 2018

We use TV4 in our schema tests, and in order to improve our tests, I'd like to be able to tell my tests to treat every schema as having additionalProperties: false, so that at least during tests there will be errors flagging when test data doesn't strictly conform to the schema.

In addition to that, it would be nice to be able to write a test to effectively 'lint' the schemas, and flag when we have schemas which don't have an additionalProperties setting at all. I could write something to read through the schema as JSON, but it would be cool if it were already possible.

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

No branches or pull requests

1 participant