Skip to content

Better JsonSchema allOf support

Pre-release
Pre-release
Compare
Choose a tag to compare
@mattpolzin mattpolzin released this 22 Apr 02:07
abbfc11
  1. Added .other case to OpenAPI.ContentType.
  2. Added PathItem.endpoints to get an array of all endpoints defined for the particular path.
  3. Added validation that security schemes referenced from PathItem.Operations can be found in the Components.
  4. Added JSONSchemaFragment to allow JSONSchema.all(of:) case to represent less than whole JSONSchemas.
  5. Fixed bug where JSONSchema would not parse anything without an explicit type specified -- upon further reading of the JSON Schema specification, it is fine to omit the type property. Now JSONSchema is happy as long as it has some way to infer the type.

⚠️ Breaking Changes ⚠️

  1. Renamed the wildcard ContentTypes to be "any" instead of "all":
  • all -> any
  • applicationAll -> anyApplication
  • audioAll -> anyAudio
  • imageAll -> anyImage
  • textAll -> anyText
  • videoAll -> anyVideo
  1. JSONSchema.all(of:) used to store an array of JSONSchema whereas now it stores an array of JSONSchemaFragment.