cyprieng / swagger-parser

Give useful informations about your swagger files
MIT License
62 stars 59 forks source link

get_example_from_prop_spec doesn't support empty properties #37

Open gabisurita opened 7 years ago

gabisurita commented 7 years ago

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