Skip to content

Add an option to set additionalProperties to false by default #31

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

Closed
wol-soft opened this issue Feb 3, 2021 · 0 comments
Closed

Add an option to set additionalProperties to false by default #31

wol-soft opened this issue Feb 3, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@wol-soft
Copy link
Owner

wol-soft commented Feb 3, 2021

By default a JSON schema enforces the user to define "additionalProperties": false for each object which should accept only the defined properties. To generate strict models an option should be available to default additionalProperties to false. If the additionalProperties keyword is defined for an object the option is ignored.

@wol-soft wol-soft added the enhancement New feature or request label Feb 3, 2021
@wol-soft wol-soft self-assigned this Feb 9, 2021
@wol-soft wol-soft added this to the 0.20.0 milestone Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant