[poem-openapi] Path parameters in prefix_path
do not generate the correct openapi specification
#826
Labels
bug
Something isn't working
Hello !
I have an api specification of the form :
Note that I have path parameters in both
prefix_path
andpath
.Expected Behavior
I expect the parameter
name
to be included in the api spec, so the generated spec should be something likeActual Behavior
Instead, what is being generated is
This causes problems with api viewers (tested with redoc and swagger-ui), as they do not generate the correct request.
Expected:
Actual
Additional testing
For the record, I tested the following api construction in Rust:
This generates the correct specification, but poem is then unable to correctly use the route and I get a 404 error when trying to access it.
Specifications
Full code example
The text was updated successfully, but these errors were encountered: