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 checking for additionalProperties in object definitions #741

Open
ghost opened this issue Jun 8, 2024 · 0 comments
Open

Add checking for additionalProperties in object definitions #741

ghost opened this issue Jun 8, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 8, 2024

I would like to propose a new validation.

When a schema type is object, ensure that additionalProperties is present.

Rationale:
It is typically an error when an object includes a property that is not listed in its spec.
It would therefore be nice to have a validation that ensures that we forbid additional properties.

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

0 participants