Open jishupei opened 2 weeks ago
RESOLVE_INLINE_ENUMS=true will refactor inline enum definitions into $ref
you can enable this in inline schema mapping option to refactor inline enum into $ref (which will be generated as enum class)
RESOLVE_INLINE_ENUMS=true will refactor inline enum definitions into $ref
you can enable this in inline schema mapping option to refactor inline enum into $ref (which will be generated as enum class)
This parameter doesn't seem to work in version 6.6.0. However, I can't upgrade to version 7.6.0 because my system can only use JDK 1.8.
you can use docker instead: https://hub.docker.com/r/openapitools/openapi-generator-cli
Bug Report Checklist
Description
When I use the following JSON to generate code, the fields with enum types in the model do not generate the corresponding enums. The generated code is as follows:
The enum values for
code
are not reflected in the model.openapi-generator version
openapi-generator-cli-6.6.0.jar
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
java -jar bin/openapi-generator-cli-6.6.0.jar generate \ -g go\ -i template/oas_full.json\ -o source \ --global-property skipFormModel=false,modelTests=false,apiTests=false,modelDocs=false
Related issues/PRs
Suggest a fix
generate the correct enum classes.