Skip to content

fix: support string const header parameters - #1530

Open
Boulea7 wants to merge 1 commit into
openapi-generators:mainfrom
Boulea7:fix/const-header-parameters
Open

Boulea7 wants to merge 1 commit into
openapi-generators:mainfrom
Boulea7:fix/const-header-parameters

Conversation

@Boulea7

@Boulea7 Boulea7 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Addresses #1524.

The reported schema drops both GET /items and GET /orders because their X-Version headers use string constants. Allow a direct string const header, including one resolved through a reference, to use the existing request renderer and keep its Literal type.

Functional tests check the actual headers on generated requests and cover an omitted optional header. A regression test preserves the existing diagnostic for a mixed header union.

Codex assisted with the patch and tests. A separate Codex reviewer verified the generated requests.

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