mattpolzin / OpenAPIKit

Codable Swift OpenAPI implementation.
MIT License
281 stars 35 forks source link

Fix simplified allOf schema optionality #281

Closed mattpolzin closed 1 year ago

mattpolzin commented 1 year ago

Simplified allOf schemas were not taking on the correct optionality (they were always required) because the root allOf context was being marked optional but all of its fragments were being left required and combination of fragments starts with an optional assumption and flips to required the first time a required fragment is encountered.