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

Added optional support for remote refs resolution. #302

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

VShingala
Copy link
Member

This PR adds support for resolution of Remote and URL refs (see here for docs) via options resolveRemoteRefs and sourceUrl.

lib/utils.js Show resolved Hide resolved
*/
resolveRemoteRefs: function (openapi, options, cb) {
if (options.resolveRemoteRefs) {
return resolver.resolve(openapi, options.sourceUrl, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VShingala Is there place in schema itself where the user can specify this sourceUrl? If yes then we should also check if that is present.

@jpoehnelt
Copy link

Anything blocking this? I'm willing to help get merged if necessary.

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

Successfully merging this pull request may close these issues.

None yet

4 participants