Dorthu / openapi3

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

fix: Recursively resolve allOfs for schema objects #109

Closed lgarber-akamai closed 1 year ago

lgarber-akamai commented 1 year ago

This change updates the Schema.resolve_allOfs() override to recursively resolve allOfs for all children objects. This is necessary as allOfs would not previously be parsed in nested Schema objects.

For example, this segment from the Linode OpenAPI spec would not be parsed correctly because it is nested in properties.automatic.items.