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(document): avoid flattening dotted paths in mixed path underneath nested path #14198

Merged
merged 3 commits into from
Dec 28, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #14178

Summary

This function call was introduced in 98150ac, but it isn't entirely clear why this flattenObjectWithDottedPaths() call is necessary. In fact, it is potentially harmful because it can unintentionally modify the document, as was the case in #14178. All flattenObjectWithDottedPaths does is flatten out all dotted paths in the nested path, which doesn't seem like correct behavior.

Examples

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

Aside from the Lints, this looks good

@vkarpov15 vkarpov15 merged commit e182fe5 into 6.x Dec 28, 2023
32 checks passed
@vkarpov15 vkarpov15 added this to the 6.12.5 milestone Dec 28, 2023
@hasezoey hasezoey deleted the vkarpov15/gh-14178 branch December 29, 2023 14:05
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.

None yet

2 participants