Skip to content

fix(openapi): handle literals in mixed unions - #136

Merged
skryukov merged 2 commits into
mainfrom
fix/openapi-literal-union
Oct 2, 2026
Merged

skryukov merged 2 commits into
mainfrom
fix/openapi-literal-union

Conversation

@skryukov

@skryukov skryukov commented Oct 2, 2026

Copy link
Copy Markdown
Owner

A string literal mixed with other types (e.g. 'auto' | number) produced {"$ref": "#/components/schemas/'auto'"}, a reference to a schema that doesn't exist. It now becomes {type: string, enum: ["auto"]}.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Deploying typelizer with  Cloudflare Pages  Cloudflare Pages

Latest commit: c235064
Status: ✅  Deploy successful!
Preview URL: https://0b928cab.typelizer.pages.dev
Branch Preview URL: https://fix-openapi-literal-union.typelizer.pages.dev

View logs

@skryukov
skryukov merged commit 905500c into main Oct 2, 2026
8 checks passed
@skryukov
skryukov deleted the fix/openapi-literal-union branch October 2, 2026 20:34
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.

1 participant