[BUG][RUST][CLIENT] Generated enum type used with format!
but it doesn't impl Display
#16975
Closed
5 of 6 tasks
Labels
Bug Report Checklist
Description
If an endpoint uses an enum as the path parameter, and the enum is defined in
components
rather than inline, then the generateddefault_api.rs
creates the URL with theformat!
macro but the generated Rust enum doesn't implementDisplay
(it does implementToString
instead).NOTE: You need to reference the enum like:
otherwise you're going to run into issue #16974 first.
openapi-generator version
I'm using the Docker
openapitools/openapi-generator-cli:latest
image.openapi-generator-cli version
prints7.1.0-SNAPSHOT
.OpenAPI declaration file content or url
Generation Details
The text was updated successfully, but these errors were encountered: