docson icon indicating copy to clipboard operation
docson copied to clipboard

Feature request: Omit duplicated properties

Open bijancn opened this issue 8 years ago • 0 comments

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.

bijancn avatar Aug 16 '16 08:08 bijancn