swagger-parser
swagger-parser copied to clipboard
get_example_from_prop_spec doesn't support empty properties
If you have something like additionalProperties: {}
defined get_example_from_prop_spec
will call _example_from_complex_def
(here), which will assume a schema
is defined.
Note: additionalProperties: {}
is useful to allow any additional properties without an explicit schema (is equals to JsonSchema true
).