@@ -261,7 +261,7 @@ The boolean value must be false.
261
261
262
262
- Example : ` updateDriver( isDrunk : Boolean @AssertFalse) : DriverDetails `
263
263
264
- - Applies to : ` Boolean `
264
+ - Applies to : ` Boolean ` , ` Lists `
265
265
266
266
- SDL : ` directive @AssertFalse(message : String = "graphql.validation.AssertFalse.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
267
267
@@ -274,7 +274,7 @@ The boolean value must be true.
274
274
275
275
- Example : ` driveCar( hasLicence : Boolean @AssertTrue) : DriverDetails `
276
276
277
- - Applies to : ` Boolean `
277
+ - Applies to : ` Boolean ` , ` Lists `
278
278
279
279
- SDL : ` directive @AssertTrue(message : String = "graphql.validation.AssertTrue.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
280
280
@@ -287,7 +287,7 @@ The element must be a number whose value must be less than or equal to the speci
287
287
288
288
- Example : ` driveCar( bloodAlcoholLevel : Float @DecimalMax(value : "0.05") : DriverDetails `
289
289
290
- - Applies to : ` String ` , ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
290
+ - Applies to : ` String ` , ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
291
291
292
292
- SDL : ` directive @DecimalMax(value : String!, inclusive : Boolean! = true, message : String = "graphql.validation.DecimalMax.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
293
293
@@ -300,7 +300,7 @@ The element must be a number whose value must be greater than or equal to the sp
300
300
301
301
- Example : ` driveCar( carHorsePower : Float @DecimalMin(value : "300.50") : DriverDetails `
302
302
303
- - Applies to : ` String ` , ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
303
+ - Applies to : ` String ` , ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
304
304
305
305
- SDL : ` directive @DecimalMin(value : String!, inclusive : Boolean! = true, message : String = "graphql.validation.DecimalMin.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
306
306
@@ -313,7 +313,7 @@ The element must be a number inside the specified `integer` and `fraction` range
313
313
314
314
- Example : ` buyCar( carCost : Float @Digits(integer : 5, fraction : 2) : DriverDetails `
315
315
316
- - Applies to : ` String ` , ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
316
+ - Applies to : ` String ` , ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
317
317
318
318
- SDL : ` directive @Digits(integer : Int!, fraction : Int!, message : String = "graphql.validation.Digits.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
319
319
@@ -340,7 +340,7 @@ The element must be a number whose value must be less than or equal to the speci
340
340
341
341
- Example : ` driveCar( horsePower : Float @Max(value : 1000) : DriverDetails `
342
342
343
- - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
343
+ - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
344
344
345
345
- SDL : ` directive @Max(value : Int! = 2147483647, message : String = "graphql.validation.Max.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
346
346
@@ -353,7 +353,7 @@ The element must be a number whose value must be greater than or equal to the sp
353
353
354
354
- Example : ` driveCar( age : Int @Min(value : 18) : DriverDetails `
355
355
356
- - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
356
+ - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
357
357
358
358
- SDL : ` directive @Min(value : Int! = 0, message : String = "graphql.validation.Min.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
359
359
@@ -366,7 +366,7 @@ The element must be a negative number.
366
366
367
367
- Example : ` driveCar( lostLicencePoints : Int @Negative) : DriverDetails `
368
368
369
- - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
369
+ - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
370
370
371
371
- SDL : ` directive @Negative(message : String = "graphql.validation.Negative.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
372
372
@@ -379,7 +379,7 @@ The element must be a negative number or zero.
379
379
380
380
- Example : ` driveCar( lostLicencePoints : Int @NegativeOrZero) : DriverDetails `
381
381
382
- - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
382
+ - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
383
383
384
384
- SDL : ` directive @NegativeOrZero(message : String = "graphql.validation.NegativeOrZero.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
385
385
@@ -401,16 +401,28 @@ The String must contain at least one non-whitespace character, according to Java
401
401
402
402
### @NotEmpty
403
403
404
- The element must have a non zero size.
404
+ The element must have a non- zero size.
405
405
406
- - Example : ` updateAccident( accidentNotes : [Notes] ! @NotEmpty) : DriverDetails `
406
+ - Example : ` updateAccident( accidentNotes : String ! @NotEmpty) : DriverDetails `
407
407
408
- - Applies to : ` String ` , ` ID ` , ` Lists ` , ` Input Objects `
408
+ - Applies to : ` String ` , ` ID ` , ` Lists `
409
409
410
410
- SDL : ` directive @NotEmpty(message : String = "graphql.validation.NotEmpty.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
411
411
412
412
- Message : ` graphql.validation.NotEmpty.message `
413
413
414
+ ### @ContainerNotEmpty
415
+
416
+ The list or input object must have a non-zero size.
417
+
418
+ - Example : ` updateAccident( accidentNotes : [Notes]! @ContainerNotEmpty) : DriverDetails `
419
+
420
+ - Applies to : ` Lists ` , ` Input Objects `
421
+
422
+ - SDL : ` directive @ContainerNotEmpty(message : String = "graphql.validation.ContainerNotEmpty.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
423
+
424
+ - Message : ` graphql.validation.ContainerNotEmpty.message `
425
+
414
426
415
427
### @Pattern
416
428
@@ -431,7 +443,7 @@ The element must be a positive number.
431
443
432
444
- Example : ` driver( licencePoints : Int @Positive) : DriverDetails `
433
445
434
- - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
446
+ - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
435
447
436
448
- SDL : ` directive @Positive(message : String = "graphql.validation.Positive.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
437
449
@@ -444,7 +456,7 @@ The element must be a positive number or zero.
444
456
445
457
- Example : ` driver( licencePoints : Int @PositiveOrZero) : DriverDetails `
446
458
447
- - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
459
+ - Applies to : ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
448
460
449
461
- SDL : ` directive @PositiveOrZero(message : String = "graphql.validation.PositiveOrZero.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
450
462
@@ -457,7 +469,7 @@ The element range must be between the specified `min` and `max` boundaries (incl
457
469
458
470
- Example : ` driver( milesTravelled : Int @Range( min : 1000, max : 100000)) : DriverDetails `
459
471
460
- - Applies to : ` String ` , ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float `
472
+ - Applies to : ` String ` , ` Byte ` , ` Short ` , ` Int ` , ` Long ` , ` BigDecimal ` , ` BigInteger ` , ` Float ` , ` Lists `
461
473
462
474
- SDL : ` directive @Range(min : Int = 0, max : Int = 2147483647, message : String = "graphql.validation.Range.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
463
475
@@ -466,14 +478,26 @@ The element range must be between the specified `min` and `max` boundaries (incl
466
478
467
479
### @Size
468
480
469
- The element size must be between the specified ` min ` and ` max ` boundaries (inclusive).
481
+ The string's size must be between the specified ` min ` and ` max ` boundaries (inclusive).
470
482
471
483
- Example : ` updateDrivingNotes( drivingNote : String @Size( min : 1000, max : 100000)) : DriverDetails `
472
484
473
- - Applies to : ` String ` , ` ID ` , ` Lists ` , ` Input Objects `
485
+ - Applies to : ` String ` , ` ID ` , ` Lists `
474
486
475
487
- SDL : ` directive @Size(min : Int = 0, max : Int = 2147483647, message : String = "graphql.validation.Size.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
476
488
477
489
- Message : ` graphql.validation.Size.message `
478
490
491
+ ### @ContainerSize
492
+
493
+ The list's or input object's size must be between the specified ` min ` and ` max ` boundaries (inclusive).
494
+
495
+ - Example : ` updateDrivingNotes( drivingNote : [String!]! @ContainerSize( min : 10, max : 20)) : DriverDetails `
496
+
497
+ - Applies to : ` Lists ` , ` Input Objects `
498
+
499
+ - SDL : ` directive @ContainerSize(min : Int = 0, max : Int = 2147483647, message : String = "graphql.validation.ContainerSize.message") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION `
500
+
501
+ - Message : ` graphql.validation.ContainerSize.message `
502
+
479
503
<!-- end -->
0 commit comments