-
Bug
-
Resolution: Fixed
-
Low
-
Minor
-
-
No
Issue Summary
The projectTypes property of the WorkflowCapabilities schema is declared as an array of enum but also contains an enum attribute which leads the OpenAPI generator to think this property is both an array and an enum.
For more details see: https://community.developer.atlassian.com/t/issue-when-generating-java-client-for-jira-cloud-from-openapi-specs/78760
Steps to Reproduce
- brew install swagger-codegen
- swagger-codegen generate -i https://developer.atlassian.com/cloud/jira/platform/swagger.v3.json -l java -o jira-rest-client
Expected Results
The code is correctly generated.
Actual Results
Generated code for WorkflowCapabilities schema handles the projectTypes property as both an enum and an array
Workaround
Manually remove the enum attribute of the projectType property in the WorkflowCapabilities schema
- mentioned in
-
Page Loading...