Is it a good idea to expose the List<JsonPatchOperation> operations; in JsonPatch class so that users are able to iterate the list to do more check before apply the patch? Right now we can only visit the list using reflection.
Why not check before JsonPatch Object is built? Check and iterate the bare JsonNode is not that convenient since redundant syntactical check needs to be done, which is already covered by the package.
Is it a good idea to expose the
List<JsonPatchOperation> operations;
in JsonPatch class so that users are able to iterate the list to do more check before apply the patch? Right now we can only visit the list using reflection.Why not check before JsonPatch Object is built? Check and iterate the bare JsonNode is not that convenient since redundant syntactical check needs to be done, which is already covered by the package.
Willing to submit a PR for this change.