-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
deps: use json-schema-ref-resolver #653
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would mark this PR a breaking
I think we should battle-test the module before landing it - maybe test it in a real project
test/ref.test.js
Outdated
@@ -1377,7 +1377,7 @@ test('Bad key', t => { | |||
}) | |||
t.fail('Should throw') | |||
} catch (err) { | |||
t.equal(err.message, 'Cannot find reference "extrenal#/definitions/projectId"') | |||
t.equal(err.message, 'Schema with id "extrenal" is not found.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the error message is less specific
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a problem to fix that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see how it's a breaking change. Tests are passing. This package was developed from the ref-resolver.js module. If you look at the implementation of the methods that are used, you will see that it's the same code. The code that is used inside of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code that is used inside of fast-json-stringify wasn't changed.
Thks, did see it at first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@ivan-tymoshenko could you resolve the conflicts? |
d6d810d
to
19c1c26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
https://github.com/fastify/json-schema-ref-resolver