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

Open API schema is missing info/title and version

    XMLWordPrintable

Details

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

    Description

      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

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD