json-diff icon indicating copy to clipboard operation
json-diff copied to clipboard

Add option for exclute test operation

Open okrimsoft opened this issue 3 years ago • 0 comments

Could be usefull add ability to disable test operation in JsonDiff some node classes like fast-json-patch work also without and in websocket comunication can reduce traffic with large amount of change

if ($this->jsonPatch !== null) {
    if ( ! self::SKIP_TEST_ENTRIES ) {
        $this->jsonPatch->op(new Test($this->path, $original));
    }
    $this->jsonPatch->op(new Replace($this->path, $new));
}

okrimsoft avatar Oct 23 '22 10:10 okrimsoft