You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the JsonPatchDocument.ApplyTo(TModel objectToApplyTo, IObjectAdapter adapter, Action<JsonPatchError>? logErrorAction) method with the expectation that all operation errors will be sent to the logErrorAction handler. However, when an operation attempts to read a dictionary value with a missing key, the KeyNotFoundException bubbles up to our code.
The source of the exception appears to be DictionaryTypedPropertyProxy<TKey, TValue>.GetValue()/DictionaryPropertyProxy.GetValue()
We would like the library to handle that exception like other operation errors and pass it to logErrorAction. I have a fork with changes that I think will fix this issue. Let me know how to proceed, thanks!
Hello!
We are using the
JsonPatchDocument.ApplyTo(TModel objectToApplyTo, IObjectAdapter adapter, Action<JsonPatchError>? logErrorAction)
method with the expectation that all operation errors will be sent to thelogErrorAction
handler. However, when an operation attempts to read a dictionary value with a missing key, theKeyNotFoundException
bubbles up to our code.The source of the exception appears to be
DictionaryTypedPropertyProxy<TKey, TValue>.GetValue()
/DictionaryPropertyProxy.GetValue()
We would like the library to handle that exception like other operation errors and pass it to
logErrorAction
. I have a fork with changes that I think will fix this issue. Let me know how to proceed, thanks!Failing Patch Operation Examples:
The text was updated successfully, but these errors were encountered: