Skip to content

fix(openapi): normalize trace operations instead of dropping them - #975

Open
Larslllllll wants to merge 1 commit into
profullstack:masterfrom
Larslllllll:fix/openapi-trace-method
Open

fix(openapi): normalize trace operations instead of dropping them#975
Larslllllll wants to merge 1 commit into
profullstack:masterfrom
Larslllllll:fix/openapi-trace-method

Conversation

@Larslllllll

Copy link
Copy Markdown
Contributor

Problem

trace is part of the OpenAPI 3 Operations Object (alongside get / post / put / delete / patch / head / options — see spec), but METHODS in normalize() omitted it.

Any spec with a trace operation silently lost it: no IR entry, no SDK method, no MCP tool, no docs page — with no error or warning.

Fix

Add trace to HttpMethod and the METHODS walker.

Tests

New test asserts a spec with /debug: { trace: … } produces exactly one operation with method: 'trace' and the correct auto/explicit id.

'trace' is part of the OpenAPI 3 Operations Object (alongside get/post/
put/delete/patch/head/options), but METHODS omitted it — so any spec
with a trace operation silently lost it in the IR: no SDK method, no
MCP tool, no docs page, with no error or warning.
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