Open hell-racer opened 1 year ago
So, what do you think? :)
We need to measure how much it affects the performance and make sure it does not create infinite loops, otherwise sounds good to me
One possibility is to bring this feature in as a new option
This is challenging because imagine value is enum and the provided json value is string. It would be awesome if it could map that back to enum from the string, but in the operation model this information where the value will finally be used is not available easily
PR is welcome, if somebody can make this work
Hi! We have string converter which trims string values and replaces empty strings with
null
. WhenJsonPatchDocumentConverter
reads string values (specifically fromvalue
fields), it just usesval = reader.GetString()
, so it ignores any string converters added to defaultJsonSerializerOptions
. Is it possible to change value reading logic to justval = JsonSerializer.Deserialize<object>(ref reader);
instead of this and this switch statements, to allow other converters to process values? Thanks!