Skip to content

feat(api-gen): support OpenAPI const schemas#2575

Merged
Maciej D (mdanilowicz) merged 2 commits into
mainfrom
api-gen-const-literals
Jul 16, 2026
Merged

feat(api-gen): support OpenAPI const schemas#2575
Maciej D (mdanilowicz) merged 2 commits into
mainfrom
api-gen-const-literals

Conversation

@patzick

Copy link
Copy Markdown
Contributor

Description

Adds OpenAPI const schema support to api-gen so const values generate literal TypeScript types, with string schemas emitted as string literals.
Accepts const definitions in the COMPONENTS_API_ALIAS validation rule alongside one-value enums.
Related to shopware/shopware#18340.

Type of change

New feature (non-breaking change which adds functionality)

ToDo's

  • Changeset file provided
  • Unit-Tests added/updated

Screenshots (if applicable)

Not applicable.

Additional context

Verified with pnpm --filter @shopware/api-gen test, pnpm --filter @shopware/api-gen typecheck, and pnpm --filter @shopware/api-gen lint.

@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
frontends-starter-template-extended Ready Ready Preview, Comment Jul 16, 2026 6:57am
frontends-vue-starter-template Ready Ready Preview Jul 16, 2026 6:57am

Request Review

@mdanilowicz Maciej D (mdanilowicz) merged commit 1e8a64c into main Jul 16, 2026
10 checks passed
@mdanilowicz Maciej D (mdanilowicz) deleted the api-gen-const-literals branch July 16, 2026 07:04
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.

2 participants