Skip to content

Match an exact additionalOperations key before a standard method - #250

Merged
geemus merged 2 commits into
ota42y:masterfrom
treadinc:additional-operations-before-standard
Nov 11, 2026
Merged

geemus merged 2 commits into
ota42y:masterfrom
treadinc:additional-operations-before-standard

Conversation

@modosc

@modosc modosc commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

follow-up to #247. in 3.2 documents, check for an exact additionalOperations key before lowercasing to a standard method. per the 3.2 spec and RFC 9110 §9.1, Get and GET are different methods, so a path with both get and additionalOperations.Get should route Get to the custom operation.

  • GET / :get still find the standard get operation
  • set_path_item_to_operation reads the standard fields directly, so an additionalOperations entry can't shadow them
  • pre-3.2 lookup is unchanged

raised in interagent/committee#499 review.

@geemus geemus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@geemus
geemus merged commit 4bba21c into ota42y:master Nov 11, 2026
12 checks passed
@modosc

modosc commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

thanks @geemus - do you have plans to do another release? i need this upstream for interagent/committee#499

@geemus

geemus commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

@modosc I didn't, but can plan to do that early next week.

@geemus

geemus commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

@modosc released in v2.8.0

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