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
thrownewModelValidationException("JSON request body is null or empty");
38
38
39
-
vardeserializedModel=JsonConvert.DeserializeObject<T>(args.Context.RequestBody,_settings)??thrownewInvalidOperationException("Deserialized model is null");
40
-
41
-
args.SetModel(deserializedModel);
39
+
try
40
+
{
41
+
args.SetModel(JsonConvert.DeserializeObject<T>(args.Context.RequestBody,_settings)??thrownewInvalidOperationException("Deserialized model is null"));
0 commit comments