Skip to content

v0.43.0

Choose a tag to compare

@daveshanley daveshanley released this 18 Nov 13:27
· 57 commits to main since this release

libopenapi’s Go model generator can now preserve unknown discriminator variants. Enable WithUnknownDiscriminatorVariants(true) to keep the discriminator value and raw JSON when an API returns a variant your generated code hasn’t seen before. A single new variant can now round-trip without failing an entire response array. Strict decoding remains the default. (#715)

  • Schema validation: OpenAPI 3.1 and 3.2 schemas that combine $ref with unevaluatedProperties or unevaluatedItems now validate correctly after transformation. Relative references and anchors retain their original scope. (#709)
  • Change reports: Adding or removing explode: false on a parameter now appears in the diff. Changes to a schema’s required list now point to the external file that defines it. (#704, #712)
  • Parsing: Skipping external reference resolution no longer panics on referenced map entries. Null operations such as post: null are now omitted from the operation list. (#707, #711)
  • Embedded schemas: Updated the OpenAPI 3.1 and 3.2 document validation schemas with upstream corrections for Link Objects and encoding. (#714)

@pcbeingused333 @swayam5342 @Tjmstudios