Skip to content

Parameter objects included via $refs break load for 3.0.x specs #348

Open
@clarkenciel

Description

@clarkenciel

Reproduction here

OpenapiFirst#load throws an error on specs that include an OperationObject with a ReferenceObject as a parameter, e.g.:

# spec/parameters.yaml
id:
  name: id
  in: path
  required: true
  schema:
    type: string
# spec.yaml
paths:
  /test/{id}:
    get:
      operationId: test
      summary: example test
      parameters: 
        # this ref breaks load:
        - $ref: spec/parameters.yaml#/id

According to the spec for OperationObjects this should be valid and it works if the openapi version is set to "3.1.0".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions