Dorthu / openapi3

A Python3 OpenAPI 3 Spec Parser
BSD 3-Clause "New" or "Revised" License
118 stars 47 forks source link

Fixed schemas without properties failing to generate models #71

Closed Dorthu closed 2 years ago

Dorthu commented 2 years ago

A Schema defined as:

example:
  type: object

should generate a Model named example with no __slots__.

This change allows generation of a model as described, and closes https://github.com/Dorthu/openapi3/issues/70.