-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add option for exclute test operation #58
Comments
sgehrig
added a commit
to sgehrig/json-diff
that referenced
this issue
Feb 28, 2025
… patch Adds feature requested in swaggest#58 (comment). Using SKIP_TEST_OPS option will not include the test operations in the final JSON patch document.
Good point. I added #73 to introduce a new option |
This is our current workaround—just in case anyone is interested: $p = array_values(
array_filter(
$r->getPatch()->jsonSerialize(),
static fn(object $op) => $op->op !== \Swaggest\JsonDiff\JsonPatch\Test::OP
)
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: