Skip to content

"Incorrect path templating" error when using references in parameters #539

Closed
@supermihi

Description

@supermihi

Hi,
using version 0.10.7 on the following OpenAPI YAML file gives the error:

WARNING parsing GET /api/{param_a}/whatever within default. Endpoint will not be generated.

Incorrect path templating for /api/{param_a}/whatever (Path parameters do not match with path)

From what I can tell, the OpenAPI file is correct:

openapi: 3.0.3
info:
  title: test
  version: 1.0.0
paths:
  /api/{param_a}/whatever:
    summary: do something
    get:
      parameters:
        - $ref: '#/components/parameters/ParamA'
      responses:
        200:
          description: ok
          content:
            application/json:
              schema:
                type: string
                format: binary
components:
  parameters:
    ParamA:
      name: param_a
      in: path
      description: some parameter
      required: true
      schema:
        type: string

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