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

deps: use json-schema-ref-resolver #653

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Conversation

ivan-tymoshenko
Copy link
Member

@ivan-tymoshenko ivan-tymoshenko commented Oct 20, 2023

Copy link
Member

@Eomm Eomm left a 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

Ref: fastify/json-schema-ref-resolver#1

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.')
Copy link
Member

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

Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@ivan-tymoshenko
Copy link
Member Author

ivan-tymoshenko commented Oct 21, 2023

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

Ref: fastify/json-schema-ref-resolver#1

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 fast-json-stringify wasn't changed.

Copy link
Member

@Eomm Eomm left a 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

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina
Copy link
Member

@ivan-tymoshenko could you resolve the conflicts?

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

LGTM

@Uzlopak Uzlopak merged commit 61de562 into master Oct 23, 2023
17 checks passed
@Uzlopak Uzlopak deleted the use-json-schema-ref-resolver branch October 23, 2023 08:47
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.

4 participants