openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[JaxRs Resteasy] Enums following standards

Open nirodg opened this issue 8 years ago • 1 comments

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

nirodg avatar Oct 08 '18 12:10 nirodg

#1065

tnmtechnologies avatar Oct 15 '18 12:10 tnmtechnologies