Redoc: externalDocs missing from tags, schemata and operations.

Created on 28 Jun 2018  路  8Comments  路  Source: Redocly/redoc

I have this OpenAPI 3.0 specification:

...
    "/processes": {
      "get": {
        "summary": "List supported processes.",
        "description": "The request asks the back-end for available processes and returns detailed process descriptions, including parameters and return values. Processes are described using the Functio specification for language-agnostic process descriptions.",
        "tags": [
          "Process Discovery"
        ],
        "externalDocs": {
          "description": "Functio specification, version 0.1.0 (or any newer patch version).",
          "url": "https://github.com/m-mohr/functio-spec/blob/master/versions/0.1.0/spec.md"
        },
        "responses": {
          "200": {
            "description": "Functio document describing the supported processes.",
            "content": {
              "application/json": {
                "schema": {
                  "externalDocs": {
                    "description": "Functio specification, version 0.1.0 (or any newer patch version).",
                    "url": "https://github.com/m-mohr/functio-spec/blob/master/versions/0.1.0/spec.md"
                  }
                },
                "examples": {
                  "functioSpecExample": {
                    "externalValue": "https://raw.githubusercontent.com/m-mohr/functio-spec/master/versions/0.1.0/example.json"
                  }
                }
              }
            }
          },
          "4XX": {
            "$ref": "#/components/responses/client_error_auth"
          },
          "5XX": {
            "$ref": "#/components/responses/server_error"
          }
        }
      }
    },
...

Both externalDocs are not rendered by ReDoc as you can see here:
https://open-eo.github.io/openeo-api/v/0.3.0/apireference/index.html#/paths/~1processes/get

Would be helpful to have this feature implemented.

enhancement help wanted

Most helpful comment

I will review @m-mohr's PR ASAP. Hopefully this week.

All 8 comments

Do you think this will be considered soon? Otherwise I'd need to start adding the externalDocs in the descriptions using markdown.

Yes, it will.
PR's are welcome!

I just checked the status of External Documentation rendering in ReDoc:

  • [x] OpenAPI/Swagger Object: Works as expected
  • [ ] Operation Object: Not shown, but model available
  • [ ] Schema Object: Not shown, but model available
  • [ ] Tag Object: Not shown, but model available

Used this OpenAPI 3.0 spec for testing:

openapi: 3.0.1
info:
  title: External Documentation Test
  version: 0.3.0
externalDocs:
  description: ExternalDocs in OpenAPI Object
  url: 'https://example.com'
tags:
  - name: Group
    externalDocs:
      description: ExternalDocs in Tag Object
      url: 'https://example.com'
paths:
  /example:
    get:
      summary: Example operation
      description: This is a simple example to show whether externalDocs is working with ReDoc or not.
      tags:
        - Group
      externalDocs:
        description: ExternalDocs in Operation Object
        url: 'https://example.com'
      responses:
        '200':
          description: This is a sample schema for a response.
          content:
            application/json:
              schema:
                type: string
                externalDocs:
                  description: ExternalDocs in Schema Object
                  url: 'https://example.com'

@RomanGotsiy I created a PR (#595) to solve this issue. Please feel free to review and add feedback as it was my first time working with React and there may be some issues.

I am also interested in this feature. Is there timeline when this will get in?

I will review @m-mohr's PR ASAP. Hopefully this week.

@RomanGotsiy Would be appreciated as I really had problems to solve conflicts in merges with the recent changes and won't have much time to solve them again.

Solved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

martnst picture martnst  路  3Comments

dvh picture dvh  路  3Comments

bmarwell picture bmarwell  路  3Comments

RomanHotsiy picture RomanHotsiy  路  3Comments

zmes50416 picture zmes50416  路  3Comments