Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-83517

Problem with declaration of projectTypes property in OpenAPI spec for Jira

XMLWordPrintable

      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

      1. brew install swagger-codegen
      2. 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

            84d764603f6b Jun Shao
            dbonotto Dario B
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: