mattpolzin / OpenAPIKit

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

Differentiate propertyless requirements #343

Closed mattpolzin closed 8 months ago

mattpolzin commented 8 months ago

Closes https://github.com/mattpolzin/OpenAPIKit/issues/344

JSONSchema types can now be queried for whether or not they were inferred (new property).

To determine if a required .fragment was decoded from the properties dict of an .object or "inferred" from an entry in the required array of an .object, check whether its inferred property is false or true.