Skip to content

Conversation

@ivan-tymoshenko
Copy link
Member

My bad, I've badly rebased #504 on #511. It doesn't fail because it is an unreachable code now.

@Uzlopak
Copy link
Contributor

Uzlopak commented Aug 30, 2022

Is the const stuff now basically reverted?

@ivan-tymoshenko
Copy link
Member Author

Is the const stuff now basically reverted?

Not completely. It works properly. The code I accidentally added is unreachable because the proper check exists.

if ('const' in schema) {

Here the code was removed:
https://github.com/fastify/fast-json-stringify/pull/511/files#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346L868

Here it was accidentally added:
https://github.com/fastify/fast-json-stringify/pull/504/files#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R849

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

can you resolve the conflicts?

@ivan-tymoshenko ivan-tymoshenko force-pushed the remove-const-validation-branch branch from 90d662b to 94ae012 Compare August 31, 2022 09:34
@mcollina mcollina merged commit ab27c92 into master Aug 31, 2022
@Fdawgs Fdawgs deleted the remove-const-validation-branch branch August 31, 2022 09:48
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