Open Gama11 opened 2 years ago
This is still an issue in 6.1.0.
to rename the model name Foo
to something else, please use model name mapping feature instead:
https://github.com/OpenAPITools/openapi-generator/blob/master/docs/customization.md#name-mapping
Interesting... I wouldn't have thought that there even is a model name to be mapped, since there is no model for it (generated as a plain String
).
(generated as a plain String).
Ah, an alias to String schema. Then the model name mapping won't work in this case.
Bug Report Checklist
Description
Bar.java
looks like this withopenapi-generator-cli generate -g spring -i example.yml -o output
:With the schema remapped (
--schema-mappings=Foo=com.example.Foo
), it's missing@Size
anddescription
:openapi-generator version
6.0.1
OpenAPI declaration file content or url
Related issues/PRs
12600