mattpolzin / OpenAPIKit

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

Json schema `examples` support #240

Closed mattpolzin closed 2 years ago

mattpolzin commented 2 years ago

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

⚠️ Breaking Change ⚠️ The OpenAPIKit module (but not the OpenAPIKit30 module) now exposes only an examples property on JSONSchemas and their contexts. This is backwards compatible with example when decoding, but code that references example will need to be updated to use the new examples array instead.