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

Incorrect working during patches creation #16

Open
Dimona opened this issue May 2, 2017 · 0 comments
Open

Incorrect working during patches creation #16

Dimona opened this issue May 2, 2017 · 0 comments

Comments

@Dimona
Copy link

Dimona commented May 2, 2017

If you had value with type array in source array, then you try to change it to null it will create incorrect patches and it this is accompanied by many warnings.
example
fld: ['a' => 1, 'b' => 2]
target fld = null

result: array (size=2)
0 =>
array (size=2)
'op' => string 'remove' (length=6)
'path' => string '/fld/a' (length=31)
1 =>
array (size=2)
'op' => string 'remove' (length=6)
'path' => string '/fld/b' (length=32)

ER:
result: array (size=1)
0 =>
array (size=2)
'op' => string 'replace' (length=6)
'path' => string '/fld' (length=31)
'value' => null

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

No branches or pull requests

1 participant