Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13354

OpenAPI spec fails validation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 28.0.0
    • Fix Version/s: 28.0.2
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon 2021 - Jul 21 - Aug 4
    • HB Backlog Status:
      Backlog

      Description

      I had tried importing the openapi.json into an API tool, but was getting messages that the format was incorrect. Running against a validator, the following error was returned:

      Error: Swagger schema validation failed. 
        Missing required property: version at #/info
      

      After manually adding "version":"1.0.0", within the "info" section, I was able to import into my API tool but the validator showed a new error:

      This API is valid, but it cannot be shown because it contains circular references
      
      TypeError: Converting circular structure to JSON
          --> starting at object with constructor 'Object'
          |     property 'properties' -> object with constructor 'Object'
          |     property 'children' -> object with constructor 'Object'
          --- property 'items' closes the circle
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jane.hou Jane Hou
              Reporter:
              mmahacek Mark Mahacek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                HB Grooming Date:

                  Git Integration