Skip to content

propagate schema extensions (x-ogen-*) into the plan #19

Description

@tdakkota

The frontend never reads libopenapi's Extensions, and plan.Metadata is {Title, Description, Deprecated}.

ogen depends on: x-ogen-name (type name override), x-ogen-type (custom Go type), x-ogen-properties (per-property name overrides), x-ogen-validate (custom validation params), x-ogen-time-format, x-oapi-codegen-extra-tags (extra struct tags). See jsonschema.Schema fields XOgenName, XOgenType, OgenValidate, ExtraTags, XOgenTimeFormat.

A generic extension passthrough (map[string]any on Metadata, keeping raw values) is preferable to hardcoding ogen-specific keys — schemacompiler should not know about x-ogen-* by name. Per-property extensions additionally need #22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions