Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-339

Open API schema is missing info/title and version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.2.11
    • 2.2.10
    • tools
    • None
    • Yes
    • 0.5

      via SUPPORT-14182, info/title and version are indeed required in open api spec, resulting in failure to import the spec in 3rd-party tools like Postman.

      Steps to reproduce

      1. Get url for openapi.json from magnolia: /.rest/openapi.json
      2. Import in postman and get an error

      > Error while importing: format not recognized

      Workaround

      Download openapi.json and modify it adding info with title and version

      Development notes

      I assume you have to add the info here

      https://git.magnolia-cms.com/projects/MODULES/repos/rest/browse/magnolia-rest-tools/src/main/java/info/magnolia/rest/tools/SwaggerRestDispatcherServlet.java#119

        Acceptance criteria

              mgeljic Mikaël Geljić
              mgeljic Mikaël Geljić
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD