v4.0.0
4.0.0
BREAKING CHANGE: SystemTextJsonPatch now supports different property naming policies!
f.e. JsonNamingPolicy.SnakeCaseLower. Fixes #36
- This means that the path and from of the system text json patch document needs to match the JSON serializer options property naming policy.
For example, if the JSON serializer options are set to use camelCase, the patch path should also be in camelCase.
BREAKING CHANGE: Exception types have been changed.
JsonPatchException-base exception type now containsFailedOperationandAffectedObjectproperties.
These properties are populated with the failed operation when the operation is available.
This change is to provide more information about the failed operation and the affected object. Fixes: #26NotSupportedExceptionandInvalidOperationExceptionare not thrown anymore. Instead,JsonPatchExceptionis thrown with the appropriate message.JsonPatchTestOperationExceptionis now thrown only when the test operation fails. Fixes #22