OpenAPI-Specification icon indicating copy to clipboard operation
OpenAPI-Specification copied to clipboard

Add support for definitions property in Schema Object

Open pintux opened this issue 7 years ago • 3 comments

Having the possibility to use the "definitions" property in a Schema Object file (as in JSON Schema) allows to better define all the shared properties in one point and only in the scope of that specific schema. This avoids the need to move shared definitions in another schema file or referencing them with relative paths to the same doc, pointing to "properties" sub-paths, which makes readability and maintenance worse.

pintux avatar May 07 '19 08:05 pintux

Similar issue https://github.com/OAI/OpenAPI-Specification/issues/1761

ikokostya avatar Jun 03 '19 13:06 ikokostya

This is fixed by #1977 (although definitions became $defs in JSON Schema draft 2019-09 as part of standardizing core schema keywords with a $ prefix).

@webron @MikeRalphson I think this can be considered closed by #1977.

handrews avatar Jan 21 '20 01:01 handrews

Yup!

webron avatar Jan 23 '20 00:01 webron