Skip to content

Doesn't support external file references #5

@rajpaulbagga

Description

@rajpaulbagga

Would love to make use of this plugin. But...

Detailed description

It fails when the spec file has references to other files. I get a 404 in the window looking for the child file using its absolute path.

Context

OpenAPI specs may be split across multiple files with references to other files to fill in, for example, schema.
E.g. something like this swagger 2.0 yaml snippet:

path:
  /invitations:
    get:
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - name: "email"
          in: query
          type: string
          description: "Email address of invitee"
          required: false
      responses:
        200:
          description: "Matching Invitations"
          schema:
            $ref: 'some-other-openapi-schema-files.json'

This would result in a failure like this when switching to the Redoc view:

Something went wrong...

Error downloading http://localhost:64338/Users/rbagga/git/my/absolute/path/to/some-other-openapi-schema-files.json HTTP ERROR 404

Stack trace

ReDoc Version: 2.0.0-rc.12
Commit: 36ebbb1

Your environment

IntelliJ 2019.2.3
Redoc plugin 0.3
MacOS Mojave 10.14.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions