Skip to content

feat: support enum schema annotations - #482

Open
jalaziz wants to merge 2 commits into
google:mainfrom
bastionplatforms:enum-schema-annotation
Open

feat: support enum schema annotations#482
jalaziz wants to merge 2 commits into
google:mainfrom
bastionplatforms:enum-schema-annotation

Conversation

@jalaziz

@jalaziz jalaziz commented Aug 23, 2026

Copy link
Copy Markdown
  • add and re-export the openapi.v3.enum_schema annotation
  • merge enum-level OpenAPI metadata into inline enum schemas for integer and string modes
  • preserve enum metadata unless a field supplies a more specific override
  • add golden fixtures covering titles, descriptions, examples, and defaults

Depends on google/gnostic-models#30. Will fix the reference once it's merged.

Fixes #481

Apply enum-level OpenAPI schema metadata to generated inline enum schemas so defaults, examples, titles, and descriptions are preserved.
Use the exact gnostic-models PR commit so the dependent enum schema implementation can build and test before the prerequisite merges.
@jalaziz
jalaziz requested a review from a team as a code owner August 23, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support OpenAPI schema annotations on enum types

1 participant