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

Support unevaluatedProperties in draft (version) 2019-09 #478

Open
kamok opened this issue May 28, 2021 · 1 comment
Open

Support unevaluatedProperties in draft (version) 2019-09 #478

kamok opened this issue May 28, 2021 · 1 comment

Comments

@kamok
Copy link

kamok commented May 28, 2021

Is your enhancement related to a problem? Please describe.

The problem is the age old issue where ref to other schemas and using additonalProperties:false doesn't allow json schema to detect the additional ref(s) and bans them from being used.

Here's a SO posts on this: https://stackoverflow.com/questions/22689900/json-schema-allof-with-additionalproperties

Describe the solution you would like

The solution was already released in the draft (version) 2019-09 spec with unevaluatedProperties. Here's some docs on it: json-schema-org/json-schema-spec#556

Describe alternatives you have considered

The alternative right now is ugly, one of the devs that helps contribute to the standard told me about it: https://stackoverflow.com/a/58798563/6174577

It makes large schemas cumbersome and ugly.

@mitodrummer
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants