Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-2899

Update swagger-maven-plugin to 3.0.1 to have a spec-compliant swagger.json

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • None

    Description

      I tried using swagger-codegen with the generated swagger.json but it gave me errors.
      I opened a bug report on their project at https://github.com/swagger-api/swagger-codegen/issues/3976, and after investigation, our current swagger-maven-plugin produces a swagger.json file with "type" : "ref" in it. This is non compliant with the specs, and a fix was introduced in https://github.com/kongchen/swagger-maven-plugin/issues/141

      Therefore, we need to upgrade the swagger-maven-plugin from 3.0-M1 to 3.0.1. I tested it and it works now with the swagger-codegen plugin. Happy to submit a PR, let me know your thoughts

      Attachments

        Issue Links

          Activity

            People

              alopresto Andy LoPresto
              stephane.maarek@gmail.com Stephane Maarek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: