@@ -124,8 +124,8 @@ async Task InvalidIntegerWithRangeProducesError(Endpoint endpoint)
124
124
var problemDetails = await AssertBadRequest ( context ) ;
125
125
Assert . Collection ( problemDetails . Errors , kvp =>
126
126
{
127
- Assert . Equal ( "IntegerWithRange " , kvp . Key ) ;
128
- Assert . Equal ( "The field IntegerWithRange must be between 10 and 100." , kvp . Value . Single ( ) ) ;
127
+ Assert . Equal ( "integerWithRange " , kvp . Key ) ;
128
+ Assert . Equal ( "The field integerWithRange must be between 10 and 100." , kvp . Value . Single ( ) ) ;
129
129
} ) ;
130
130
}
131
131
@@ -143,7 +143,7 @@ async Task InvalidIntegerWithRangeAndDisplayNameProducesError(Endpoint endpoint)
143
143
var problemDetails = await AssertBadRequest ( context ) ;
144
144
Assert . Collection ( problemDetails . Errors , kvp =>
145
145
{
146
- Assert . Equal ( "IntegerWithRangeAndDisplayName " , kvp . Key ) ;
146
+ Assert . Equal ( "integerWithRangeAndDisplayName " , kvp . Key ) ;
147
147
Assert . Equal ( "The field Valid identifier must be between 10 and 100." , kvp . Value . Single ( ) ) ;
148
148
} ) ;
149
149
}
@@ -162,8 +162,8 @@ async Task MissingRequiredSubtypePropertyProducesError(Endpoint endpoint)
162
162
var problemDetails = await AssertBadRequest ( context ) ;
163
163
Assert . Collection ( problemDetails . Errors , kvp =>
164
164
{
165
- Assert . Equal ( "PropertyWithMemberAttributes " , kvp . Key ) ;
166
- Assert . Equal ( "The PropertyWithMemberAttributes field is required." , kvp . Value . Single ( ) ) ;
165
+ Assert . Equal ( "propertyWithMemberAttributes " , kvp . Key ) ;
166
+ Assert . Equal ( "The propertyWithMemberAttributes field is required." , kvp . Value . Single ( ) ) ;
167
167
} ) ;
168
168
}
169
169
@@ -185,13 +185,13 @@ async Task InvalidRequiredSubtypePropertyProducesError(Endpoint endpoint)
185
185
Assert . Collection ( problemDetails . Errors ,
186
186
kvp =>
187
187
{
188
- Assert . Equal ( "PropertyWithMemberAttributes.RequiredProperty " , kvp . Key ) ;
189
- Assert . Equal ( "The RequiredProperty field is required." , kvp . Value . Single ( ) ) ;
188
+ Assert . Equal ( "propertyWithMemberAttributes.requiredProperty " , kvp . Key ) ;
189
+ Assert . Equal ( "The requiredProperty field is required." , kvp . Value . Single ( ) ) ;
190
190
} ,
191
191
kvp =>
192
192
{
193
- Assert . Equal ( "PropertyWithMemberAttributes.StringWithLength " , kvp . Key ) ;
194
- Assert . Equal ( "The field StringWithLength must be a string with a maximum length of 10." , kvp . Value . Single ( ) ) ;
193
+ Assert . Equal ( "propertyWithMemberAttributes.stringWithLength " , kvp . Key ) ;
194
+ Assert . Equal ( "The field stringWithLength must be a string with a maximum length of 10." , kvp . Value . Single ( ) ) ;
195
195
} ) ;
196
196
}
197
197
@@ -214,18 +214,18 @@ async Task InvalidSubTypeWithInheritancePropertyProducesError(Endpoint endpoint)
214
214
Assert . Collection ( problemDetails . Errors ,
215
215
kvp =>
216
216
{
217
- Assert . Equal ( "PropertyWithInheritance.EmailString " , kvp . Key ) ;
218
- Assert . Equal ( "The EmailString field is not a valid e-mail address." , kvp . Value . Single ( ) ) ;
217
+ Assert . Equal ( "propertyWithInheritance.emailString " , kvp . Key ) ;
218
+ Assert . Equal ( "The emailString field is not a valid e-mail address." , kvp . Value . Single ( ) ) ;
219
219
} ,
220
220
kvp =>
221
221
{
222
- Assert . Equal ( "PropertyWithInheritance.RequiredProperty " , kvp . Key ) ;
223
- Assert . Equal ( "The RequiredProperty field is required." , kvp . Value . Single ( ) ) ;
222
+ Assert . Equal ( "propertyWithInheritance.requiredProperty " , kvp . Key ) ;
223
+ Assert . Equal ( "The requiredProperty field is required." , kvp . Value . Single ( ) ) ;
224
224
} ,
225
225
kvp =>
226
226
{
227
- Assert . Equal ( "PropertyWithInheritance.StringWithLength " , kvp . Key ) ;
228
- Assert . Equal ( "The field StringWithLength must be a string with a maximum length of 10." , kvp . Value . Single ( ) ) ;
227
+ Assert . Equal ( "propertyWithInheritance.stringWithLength " , kvp . Key ) ;
228
+ Assert . Equal ( "The field stringWithLength must be a string with a maximum length of 10." , kvp . Value . Single ( ) ) ;
229
229
} ) ;
230
230
}
231
231
@@ -257,18 +257,18 @@ async Task InvalidListOfSubTypesProducesError(Endpoint endpoint)
257
257
Assert . Collection ( problemDetails . Errors ,
258
258
kvp =>
259
259
{
260
- Assert . Equal ( "ListOfSubTypes [0].RequiredProperty " , kvp . Key ) ;
261
- Assert . Equal ( "The RequiredProperty field is required." , kvp . Value . Single ( ) ) ;
260
+ Assert . Equal ( "listOfSubTypes [0].requiredProperty " , kvp . Key ) ;
261
+ Assert . Equal ( "The requiredProperty field is required." , kvp . Value . Single ( ) ) ;
262
262
} ,
263
263
kvp =>
264
264
{
265
- Assert . Equal ( "ListOfSubTypes [0].StringWithLength " , kvp . Key ) ;
266
- Assert . Equal ( "The field StringWithLength must be a string with a maximum length of 10." , kvp . Value . Single ( ) ) ;
265
+ Assert . Equal ( "listOfSubTypes [0].stringWithLength " , kvp . Key ) ;
266
+ Assert . Equal ( "The field stringWithLength must be a string with a maximum length of 10." , kvp . Value . Single ( ) ) ;
267
267
} ,
268
268
kvp =>
269
269
{
270
- Assert . Equal ( "ListOfSubTypes [1].StringWithLength " , kvp . Key ) ;
271
- Assert . Equal ( "The field StringWithLength must be a string with a maximum length of 10." , kvp . Value . Single ( ) ) ;
270
+ Assert . Equal ( "listOfSubTypes [1].stringWithLength " , kvp . Key ) ;
271
+ Assert . Equal ( "The field stringWithLength must be a string with a maximum length of 10." , kvp . Value . Single ( ) ) ;
272
272
} ) ;
273
273
}
274
274
@@ -286,7 +286,7 @@ async Task InvalidPropertyWithDerivedValidationAttributeProducesError(Endpoint e
286
286
var problemDetails = await AssertBadRequest ( context ) ;
287
287
Assert . Collection ( problemDetails . Errors , kvp =>
288
288
{
289
- Assert . Equal ( "IntegerWithDerivedValidationAttribute " , kvp . Key ) ;
289
+ Assert . Equal ( "integerWithDerivedValidationAttribute " , kvp . Key ) ;
290
290
Assert . Equal ( "Value must be an even number" , kvp . Value . Single ( ) ) ;
291
291
} ) ;
292
292
}
@@ -305,15 +305,15 @@ async Task InvalidPropertyWithMultipleAttributesProducesError(Endpoint endpoint)
305
305
var problemDetails = await AssertBadRequest ( context ) ;
306
306
Assert . Collection ( problemDetails . Errors , kvp =>
307
307
{
308
- Assert . Equal ( "PropertyWithMultipleAttributes " , kvp . Key ) ;
308
+ Assert . Equal ( "propertyWithMultipleAttributes " , kvp . Key ) ;
309
309
Assert . Collection ( kvp . Value ,
310
310
error =>
311
311
{
312
- Assert . Equal ( "The field PropertyWithMultipleAttributes is invalid." , error ) ;
312
+ Assert . Equal ( "The field propertyWithMultipleAttributes is invalid." , error ) ;
313
313
} ,
314
314
error =>
315
315
{
316
- Assert . Equal ( "The field PropertyWithMultipleAttributes must be between 10 and 100." , error ) ;
316
+ Assert . Equal ( "The field propertyWithMultipleAttributes must be between 10 and 100." , error ) ;
317
317
} ) ;
318
318
} ) ;
319
319
}
@@ -333,7 +333,7 @@ async Task InvalidPropertyWithCustomValidationProducesError(Endpoint endpoint)
333
333
var problemDetails = await AssertBadRequest ( context ) ;
334
334
Assert . Collection ( problemDetails . Errors , kvp =>
335
335
{
336
- Assert . Equal ( "IntegerWithCustomValidation " , kvp . Key ) ;
336
+ Assert . Equal ( "integerWithCustomValidation " , kvp . Key ) ;
337
337
var error = Assert . Single ( kvp . Value ) ;
338
338
Assert . Equal ( "Can't use the same number value in two properties on the same class." , error ) ;
339
339
} ) ;
0 commit comments