swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

get_example_from_prop_spec doesn't support empty properties

Open gabisurita opened this issue 8 years ago • 0 comments

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).

gabisurita avatar Feb 09 '17 22:02 gabisurita