React to JsonPatch exception message changes. (#6976)
This commit is contained in:
parent
1e5e34c9c1
commit
ce66e95304
|
|
@ -65,7 +65,7 @@ namespace Microsoft.AspNetCore.Mvc
|
|||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("test", "/CustomerName", null, "James", "The test operation is not supported.")]
|
||||
[InlineData("test", "/CustomerName", null, "James", "The current value '' at path 'CustomerName' is not equal to the test value 'James'.")]
|
||||
[InlineData("invalid", "/CustomerName", null, "James", "Invalid JsonPatch operation 'invalid'.")]
|
||||
[InlineData("", "/CustomerName", null, "James", "Invalid JsonPatch operation ''.")]
|
||||
public void ApplyTo_InvalidPatchOperations_AddsModelStateError(
|
||||
|
|
|
|||
Loading…
Reference in New Issue