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

Fix test cases for new normalisation rules #985

Closed
wants to merge 1 commit into from

Conversation

fredden
Copy link

@fredden fredden commented Oct 24, 2022

These test cases claim to be "already normalized". According to the rules in version 2.x of ergebnis/json-normalizer they are normalised and all is well. However, according to the rules in version 3.x of ergebnis/json-normalizer, they are not yet normalised. Changing them now makes no difference to the test-suite, however, with the files as they are, the test suite fails on #956; after this pull request has been merged, the test suite in #956 will pass, which should allow that to be merged in.

Related to #956 and #868.

@fredden
Copy link
Author

fredden commented Nov 8, 2022

According to the discussion in #704, it seems that this particular key (scripts.*.*) should not be sorted. From what I can tell, it's fine to sort the keys of scripts, but any children thereof should remain in the order specified.

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

Successfully merging this pull request may close these issues.

2 participants