Skip to content

Incorrect escape on diff fix#14

Merged
corka149 merged 3 commits into
corka149:masterfrom
tinfoil:bullen/bugfix
Aug 10, 2022
Merged

Incorrect escape on diff fix#14
corka149 merged 3 commits into
corka149:masterfrom
tinfoil:bullen/bugfix

Conversation

@ACBullen
Copy link
Copy Markdown
Contributor

@ACBullen ACBullen commented Aug 9, 2022

Found when using Jsonpatch with OpenAPI documents. When diffing documents with characters in need of escaping, at the stage of determining paths to remove, the checked_paths list has the paths already escaped, whereas the path to-be-checked is not. This means that Remove operations are created for every path with unescaped path attributes.

Fix to ensure Remove operation paths are escaped when diffing

See merge request tinfoil/oss-forks/jsonpatch!1
@corka149 corka149 self-requested a review August 10, 2022 04:48
Copy link
Copy Markdown
Owner

@corka149 corka149 left a comment

Choose a reason for hiding this comment

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

@ACBullen thanks for fixing this nasty bug. 😃

@corka149 corka149 merged commit 487d895 into corka149:master Aug 10, 2022
@corka149
Copy link
Copy Markdown
Owner

I will publish the fixed version later today.

@ACBullen
Copy link
Copy Markdown
Contributor Author

@ACBullen thanks for fixing this nasty bug. 😃

Happy to help 🙂

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.

2 participants