Havunen / SystemTextJsonPatch

SystemTextJsonPatch is a JSON Patch (JsonPatchDocument) RFC 6902 implementation for .NET using System.Text.Json
MIT License
102 stars 12 forks source link

Could you please to help me to make snake case path and value work? #36

Closed sguryev closed 1 week ago

sguryev commented 2 weeks ago

I have added description to the PR. There is the test showing my problem.

Havunen commented 1 week ago

This will be fixed in the next release. It will be breaking change

sguryev commented 1 week ago

@Havunen any workarounds we can use now? I think I can invent something but would like o know the best place to do it

Havunen commented 1 week ago

using JsonPropertyAttribute to decorate the snake_case property names everywhere you need it can be used as workaround, I will try to make a new release this weekend anyway

sguryev commented 6 days ago

Ouch, it looks too scary for our project :) I was thinking about some endpoint filter or middleware which can replace the body for PATCH requests. Anyway great news we can have new version this weekend. LMK if you need any help

Havunen commented 6 days ago

v4.0.0 has been released https://github.com/Havunen/SystemTextJsonPatch/releases/tag/v4.0.0