Redocly / redoc

📘 OpenAPI/Swagger-generated API Reference Documentation
https://redocly.github.io/redoc/
MIT License
22.89k stars 2.27k forks source link

Downloaded file does not include referenced definitions #2496

Open mkraszew opened 3 months ago

mkraszew commented 3 months ago

Describe the bug In our API definitions we use shared models, example below. Downloaded file does not include referenced definitions.

Expected behavior I would expect that in the downloaded file we have also included shared model dto or there is a zip file with all required files included.

Minimal reproducible OpenAPI snippet(if possible) Example:

    '401':
      $ref: ./shared-dto-model.yml#/components/responses/Unauthorized
    '403':
      $ref: ./shared-dto-model.yml#/components/responses/Forbidden
    '404':
      description: Should be returned when not found entity
      content:
        application/json:
          schema:
            $ref: ./shared-dto-model.yml#/components/schemas/ErrorResponse
    '500':
      $ref: ./shared-dto-model.yml#/components/responses/InternalServerError