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 for remote references #138

Closed
hpl002 opened this issue Sep 1, 2020 · 1 comment
Closed

Support for remote references #138

hpl002 opened this issue Sep 1, 2020 · 1 comment

Comments

@hpl002
Copy link

hpl002 commented Sep 1, 2020

Does the middleware support remote references, as allowed by the official spec: https://swagger.io/docs/specification/using-ref/

Remote Reference – $ref: 'document.json' Uses the whole document located on the same server and in the same location.
The element of the document located in the same folder – $ref: 'document.json#/myElement'
The element of the document located in the parent folder – $ref: '../document.json#/myElement'
The element of the document located in another folder – $ref: '../another-folder/document.json#

What is the strategy for remote references?

Thanks!

@kobik
Copy link
Collaborator

kobik commented Sep 2, 2020

Hi @hpl002.

It should be supported when calling initAsync instead of init.

@hpl002 hpl002 closed this as completed Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants