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

Support reading $ref: #/paths/* #35

Closed
AbhimanyuG opened this issue Apr 5, 2019 · 2 comments
Closed

Support reading $ref: #/paths/* #35

AbhimanyuG opened this issue Apr 5, 2019 · 2 comments

Comments

@AbhimanyuG
Copy link

AbhimanyuG commented Apr 5, 2019

Currently APISprout has strict behavior where it expects $ref to be pointing to components/schemas only. However standard resolver tools like Speccy resolves paths to something like these:

field:
  $ref: '#/paths/inventory~get~blahblah/get/responses/200/content/application~1json/schema/items/**'

As per OpenAPI standards as well above behavior is allowed, although not ideal.

So instead of failing, $refs should be read/crawled regardless of where they point.

@AbhimanyuG
Copy link
Author

@danielgtaylor Just found out you already reported this issue in kin-openapi: getkin/kin-openapi#24

@AbhimanyuG
Copy link
Author

Duplicate of #1

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

1 participant