Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path parameters in $refs are not picked up #1579

Open
martijnhoekstra opened this issue Sep 8, 2022 · 1 comment
Open

path parameters in $refs are not picked up #1579

martijnhoekstra opened this issue Sep 8, 2022 · 1 comment

Comments

@martijnhoekstra
Copy link
Contributor

given

main.yml:

paths:
  /my/{path}/somewhere:
    $ref: external.yml#/~1my~1{path}~1somewhere

external.yml:

/my/{path}/somewhere:
  parameters:
  - in: path
     name: path
     required: true
  get:
    operationId: myExternalOp
    resonses:
      '200':
        description: ok

no route parameter for path is created in the handler interface

@blast-hardcheese
Copy link
Member

that's unfortunate. We are using the openapi-parser's expand definitions feature, this seems like a bug in the underlying infrastructure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants