File tree 2 files changed +2
-2
lines changed
OpenApiKiotaEndToEndTests/ModelStateValidation
OpenApiNSwagEndToEndTests/ModelStateValidation
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ public async Task Cannot_use_double_outside_of_valid_range(double age)
358
358
359
359
ErrorObject errorObject = document . Errors . First ( ) ;
360
360
errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
361
- errorObject . Detail . Should ( ) . Be ( "The field Age must be between 0.1 exclusive and 122.9 exclusive." ) ;
361
+ errorObject . Detail . Should ( ) . Be ( $ "The field Age must be between { 0.1 } exclusive and { 122.9 } exclusive.") ;
362
362
errorObject . Source . ShouldNotBeNull ( ) ;
363
363
errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/age" ) ;
364
364
}
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ public async Task Cannot_use_double_outside_of_valid_range(double age)
351
351
352
352
ErrorObject errorObject = document . Errors . First ( ) ;
353
353
errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
354
- errorObject . Detail . Should ( ) . Be ( "The field Age must be between 0.1 exclusive and 122.9 exclusive." ) ;
354
+ errorObject . Detail . Should ( ) . Be ( $ "The field Age must be between { 0.1 } exclusive and { 122.9 } exclusive.") ;
355
355
errorObject . Source . ShouldNotBeNull ( ) ;
356
356
errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/age" ) ;
357
357
}
You can’t perform that action at this time.
0 commit comments