Skip to content

Support query method and additionalOperations for OpenAPI 3.2 (parse + operation lookup + QueryMethodBefore32/AdditionalOperationsBefore32 rules) - #11

Draft
modosc wants to merge 1 commit into
openapi-3-2/discriminator-default-mappingfrom
openapi-3-2/query-additional-operations
Draft

modosc wants to merge 1 commit into
openapi-3-2/discriminator-default-mappingfrom
openapi-3-2/query-additional-operations

Conversation

@modosc

@modosc modosc commented Sep 18, 2026 •

Copy link
Copy Markdown
  • PathItem parses the query operation and the additionalOperations map
  • in 3.2 docs (or with allow_3_2_features), operation() / request_operation() resolve both and match methods case-insensitively
  • custom methods match the exact key first, then case-insensitively
  • 3.0/3.1 docs keep the exact-case standard-method lookup (request_operation('GET', …) still returns nil)
  • operation() now returns nil for non-operation fields like summary (it used to return the field's value)

depends on #10.

@modosc
modosc force-pushed the openapi-3-2/query-additional-operations branch from 840f815 to ebda65a Compare September 23, 2026 15:40
@modosc
modosc added this pull request to stack #13 September 23, 2026 15:43
@modosc
modosc force-pushed the openapi-3-2/query-additional-operations branch 2 times, most recently from f44740d to 4a4d095 Compare September 23, 2026 15:45
@modosc
modosc force-pushed the openapi-3-2/query-additional-operations branch from 4a4d095 to 1a6d718 Compare September 24, 2026 21:27
@modosc
modosc force-pushed the openapi-3-2/query-additional-operations branch from 1a6d718 to 119354b Compare September 24, 2026 21:37
@modosc
modosc removed this pull request from stack #13 September 24, 2026 21:38
@modosc
modosc added this pull request to stack #15 September 24, 2026 21:38
@modosc
modosc force-pushed the openapi-3-2/query-additional-operations branch from 119354b to 2296106 Compare September 24, 2026 22:28
@modosc
modosc removed this pull request from stack #15 September 24, 2026 22:29
@modosc
modosc added this pull request to stack #20 September 24, 2026 22:29
@modosc modosc changed the title Support query method and additionalOperations for OpenAPI 3.2 (parse + operation lookup + rules) Support query method and additionalOperations for OpenAPI 3.2 (parse + operation lookup + QueryMethodBefore32/AdditionalOperationsBefore32 rules) Sep 24, 2026
…+ operation lookup + rules)

PathItem parses the 3.2 query operation and additionalOperations map. In 3.2 documents (or with allow_3_2_features), operation()/request_operation() resolve them and match methods case-insensitively; earlier documents keep the exact-case standard-method lookup. QueryMethodBefore32 / AdditionalOperationsBefore32 flag their use in pre-3.2 documents.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant