Skip to content

v0.44.0

Latest

Choose a tag to compare

@daveshanley daveshanley released this 21 Nov 19:02

libopenapi v0.44.0 expands OpenAPI 3.2 multipart support and improves how what-changed classifies schema changes. Concurrent calls to BuildV2Model or BuildV3Model on the same document now share one model. Errors for unresolved external $refs include the document location and the underlying cause.

  • Breaking Go API change. MediaType.ItemEncoding changed from a map to a single *Encoding in the high-level model. Use PrefixEncoding for ordered multipart parts. Nested encodings are also supported. [Migration guide](https://github.com/pb33f/libopenapi/blob/v0.44.0/MIGRATING.md)
  • Fewer false breaking changes. Making an existing response-only field required or a request-only field optional is now compatible. Shared schemas and closed responses that reject a new field still receive a breaking classification. [PR #725](#725)

@Tjmstudios