openapi-generator
openapi-generator copied to clipboard
[JaxRs Resteasy] Enums following standards
Description
Generating server code using the jaxrs-resteasy profile defines ENUMs following the standards, the requests will contain a enum in uppercase but it won't match the enum defined on the swagger schema and we will get a server error.
openapi-generator version
openapi-generator-cli-3.3.0.jar
OpenAPI declaration file content or url
https://github.com/tmforum-apis/TMF641_ServiceOrder/blob/master/Service_Ordering_Management.regular.swagger.json
Command line used for generation
java -jar openapi-generator-cli-3.3.0.jar generate -i api.json -g jaxrs-resteasy -o api-client
Steps to reproduce
- Generate the code for the server api
- Deploy the project
- Make a post requests where an enum is defined in LowerCase
Related issues/PRs
Suggest a fix/enhancement
#1065