-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Path parameter bug when registering different methods on similar route structures #2201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In my understanding, these are the same "endpoints/paths" but different "operations". You are technically mixing two different path parameters with the same hierarchy, which is undesirable and prohibited in some specs. For instance: https://swagger.io/specification/#paths-object (OAM 3.0.3) While different "operations" may have different "parameters", as per the same spec, path parameters cannot be different between operations as they must be derived from path. So, the tooling is not guaranteed to behave in a specific way here. |
This is current limitation of router. This thread discusses this issue #1726 (comment) We have reworked that limitation in |
@aldas closed? |
seems so. PR #2209 solved this "feature" |
Issue Description
When registering these routes, we are seeing unexpected behavior:
The parameters of the DELETE endpoint is now
customer
andtype
, instead ofcustomer
anduuid
.Checklist
Expected behaviour
The parameters of the DELETE endpoint is
customer
anduuid
.Actual behaviour
The parameters of the DELETE endpoint is
customer
andtype
.Steps to reproduce
Working code to debug
Output:
Version/commit
v4.7.2
The text was updated successfully, but these errors were encountered: