Skip to content

Cannot bundle $ref like ./errors.yaml#/400_unexpected #500

@pete-woods

Description

@pete-woods

When attempting to bundle my spec, I've run into the following issue. Referencing a raw file works, but referencing an object from within a file does not.

It looks like #418 fixed the document loading for this kind of reference, but bundling seems like it wasn't fixed at the same time.

e.g.

  responses:
    "200":
      $ref: ../components/responses/Unspecified200.yaml # works
    "400":
      $ref: '../components/responses/4xxClientErrors.yaml#/400_unexpected_request_body' # does not work
    "403":
      $ref: '../components/responses/4xxClientErrors.yaml#/403_permission_denied' # does not work

I've created some tests for this in #499.

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