Skip to content

The linter does not search for path parameters in refs: "path template expressions is not matched with Parameter Object(s)" #32

Description

@Kilkenni

Describe the bug
If an OpenAPI documentation is split into several yaml files connected via $ref, and paths contains an endpoint with a path parameter and a $ref, the linter does not check the referenced yaml for this parameter and displays the "path template expressions is not matched with Parameter Object(s)" 3040101 error.

swagger-cli validate does not show any problems.

To Reproduce
openapi.yaml :

paths:
  /foo/{id}:
    $ref: './external.yaml#/paths/foo'

external.yaml :

paths:
  foo:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
    get:
      responses:
        '200':
          description: OK

Expected behavior
If a path uses a $ref, the linter should resolve it and find the parameters inside (as per OpenAPI spec)

SpecLynx OpenAPI Toolkit version (please complete the following information):

  • version: 1.5.3

Desktop/Electron (please complete the following information):

  • OS: Fedora Linux
  • Version 44

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