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

$ref in path not correctly handled in case of path parameter #446

Closed
LasneF opened this issue Feb 6, 2024 · 2 comments
Closed

$ref in path not correctly handled in case of path parameter #446

LasneF opened this issue Feb 6, 2024 · 2 comments

Comments

@LasneF
Copy link

LasneF commented Feb 6, 2024

since 0.8.7 and path now support $ref

but this looks not fully handled in correctly when there is a path parameter

exemple :

File : openapi.yaml contains

/pets/{petId}:
    $ref: ./paths/pet.yaml

File : pet.yaml

parameters:
  - $ref: "../parameters/petId.yaml"

get:
     responses:
           "200":

vacuum mentionned

GET must define parameter petId as expected by path /pets/{petId}

@LasneF
Copy link
Author

LasneF commented Feb 6, 2024

may be a duplicate of #390

daveshanley added a commit to pb33f/libopenapi that referenced this issue Feb 6, 2024
And daveshanley/vacuum#446

Signed-off-by: quobix <dave@quobix.com>
daveshanley added a commit to pb33f/libopenapi that referenced this issue Feb 7, 2024
And daveshanley/vacuum#446

Signed-off-by: quobix <dave@quobix.com>
@daveshanley daveshanley mentioned this issue Feb 7, 2024
@daveshanley
Copy link
Owner

Addressed in v0.9.0 it was fixed in libopenapi

https://github.com/pb33f/libopenapi/blob/main/index/spec_index_test.go#L1618

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