Closed ppKrauss closed 8 months ago
This is not supported by OpenAPI (neither 2.0 nor the upcoming 3.0).
Hi @ePaul , thanks feedback.
.... Perhaps v3.1? 4.0?
This is being addressed in OAS 4 Moonwalk under the operation signatures principle. Please join the discussions in that repository if you are interested!
How to do parameter-overloading with OpenAPI?
With the main API Gateway tools, like Apache and NGINX, it is natural using regular expressions.
... Perhaps it is a suggestion to the OpenAPI v3.1...
Example
The declarations say that
A
andB
are distinct var-names with distinct datatypes... But tuday (v2.0) it triggs a "Semantic error: Equivalent paths are not allowed".