Skip to content

Releases

v0.12.0

Choose a tag to compare

@thrawn01 thrawn01 released this 14 Jun 12:44
98a46f5

additionalProperties → proto map<K,V>

A type: object property with a typed additionalProperties (and no declared properties) is now converted to a proto3 map<string, V> field instead of an empty nested message. Value types supported: string, scalars (int32/int64/bool), and $ref (map<string, Msg>).

Previously a typed map became an empty message: plural field names hard-errored, while singular names (e.g. metadata) silently dropped the value type on the wire. This unblocks steve and clears the slip-stream protobuf/JSON divergence (ENG-103).

Part of ENG-102.

v0.11.0

Choose a tag to compare

@thrawn01 thrawn01 released this 04 Jun 05:01
21b37d4

Protobuf oneof support for style-B (wire-compatible) oneOf schemas

OpenAPI schemas that express a wire-compatible union — an object whose oneOf branches each name a single required property, with no discriminator — are now emitted as a native protobuf oneof group instead of being routed to the Go union path.

Event:
  type: object
  properties:
    cat_event: { $ref: '#/components/schemas/Cat' }
    dog_event: { $ref: '#/components/schemas/Dog' }
  oneOf:
    - required: [cat_event]
    - required: [dog_event]

generates:

message Event {
  oneof event {
    Cat cat_event = 1 [json_name = "cat_event"];
    Dog dog_event = 2 [json_name = "dog_event"];
  }
}

Highlights

  • Variant fields keep their locked field numbers; FieldNumbers overrides and removed-variant reserved tombstones continue to work.
  • oneof members emit in deterministic field-number order (reorder-invariant proto).
  • Malformed style-B shapes (branch with zero/multiple required properties, undeclared property, or array variant) are rejected at conversion time with actionable messages.
  • The flat/discriminated oneOf form is unchanged and still routes to the Go union path.

Full changelog: v0.10.0...v0.11.0

v0.10.0

Choose a tag to compare

@thrawn01 thrawn01 released this 31 May 03:25
05798ef

What's Changed

  • Add FieldNumbers injection, reserved rendering, and enum numbering correction by @thrawn01 in #3

Full Changelog: v0.9.0...v0.10.0

v0.9.0

Choose a tag to compare

@thrawn01 thrawn01 released this 03 Mar 03:09
3b75cab

What's Changed

  • Add composition example generation (oneOf, allOf, anyOf) by @thrawn01 in #2

Full Changelog: v0.8.0...v0.9.0

v0.8.0

Choose a tag to compare

@thrawn01 thrawn01 released this 20 Jan 19:36
c8075a9

What's Changed

  • Add support for schema and property-level examples by @thrawn01 in #1

New Contributors

Full Changelog: v0.7.0...v0.8.0

v0.7.0

Choose a tag to compare

@thrawn01 thrawn01 released this 21 Nov 22:46

Full Changelog: v0.6.0...v0.7.0

v0.6.0

Choose a tag to compare

@thrawn01 thrawn01 released this 20 Nov 17:15

Full Changelog: v0.5.0...v0.6.0

v0.5.0

Choose a tag to compare

@thrawn01 thrawn01 released this 20 Nov 03:10

Full Changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@thrawn01 thrawn01 released this 20 Nov 00:56

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@thrawn01 thrawn01 released this 10 Nov 14:48

Full Changelog: v0.2.0...v0.3.0