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

Bug: Root level $ref not being parsed #16

Closed
willfarrell opened this issue Apr 2, 2016 · 2 comments
Closed

Bug: Root level $ref not being parsed #16

willfarrell opened this issue Apr 2, 2016 · 2 comments
Labels

Comments

@willfarrell
Copy link

var input = { "$ref":"http://192.168.99.100/schema/sandbox#/definitions/item" };
$RefParser.dereference(input, function(err, schema) {
        if (err) {
            console.error(err);
            return done = true;
        }
         console.log(schema); 
});
// console:
// { '$ref': 'http://192.168.99.100/schema/sandbox#/definitions/item' }
@JamesMessinger
Copy link
Member

This should be fixed now, as of version 3.0.0.

@willfarrell
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants