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

Feature request: Omit duplicated properties #50

Open
bijancn opened this issue Aug 16, 2016 · 0 comments
Open

Feature request: Omit duplicated properties #50

bijancn opened this issue Aug 16, 2016 · 0 comments

Comments

@bijancn
Copy link

bijancn commented Aug 16, 2016

As of v4 of the draft, there is no direct possibility to use allOf in combination with "additionalProperties" = false, see here.

Currently one has to duplicate the properties with empty objects to get around this. But this makes the documentation quite ugly, see an example here. Would it be possible to check whether properties are defined in the allOf section (of course resolving $refs) and omitting them?

Not sure if there is currently enough momentum behind v5 to get it published and then implemented here as well as the commonly used validators.

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

2 participants