json-patch / json-patch-tests

Tests for implementations of json-patch
68 stars 21 forks source link

add tests for replacing the root document #30

Closed nicksnyder closed 7 years ago

nicksnyder commented 7 years ago

These tests ensure that it is possible to change the document from an array to an object and vice versa.

Relevant parts of spec

If the target location specifies an object member that does exist, that member's value is replaced. The root of the target document - whereupon the specified value becomes the entire content of the target document.

bruth commented 7 years ago

Thanks @nicksnyder, sorry for the long delay!