cyprieng / swagger-parser

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

Parser assumes `properties` key always exists in a given swagger definition #35

Closed SalimBensiali closed 7 years ago

SalimBensiali commented 7 years ago

But definitions of type array for example do not have a properties key. see swagger_parser.py#L483

Cheers.

cyprieng commented 7 years ago

Yes you are right, if you want to provide a fix you are welcome, or I can do it :smile:

SalimBensiali commented 7 years ago

Thanks. I have a fix on my fork, but I am not sure where a test for this should go. Any insights?