@@ -39,7 +39,9 @@ class ConstraintError extends Enum
3939 public const INVALID_SCHEMA = 'invalidSchema ' ;
4040 public const LENGTH_MAX = 'maxLength ' ;
4141 public const LENGTH_MIN = 'minLength ' ;
42+ public const MAX_CONTAINS = 'maxContains ' ;
4243 public const MAXIMUM = 'maximum ' ;
44+ public const MIN_CONTAINS = 'minContains ' ;
4345 public const MIN_ITEMS = 'minItems ' ;
4446 public const MINIMUM = 'minimum ' ;
4547 public const MISSING_ERROR = 'missingError ' ;
@@ -99,8 +101,10 @@ public function getMessage()
99101 self ::LENGTH_MAX => 'Must be at most %d characters long ' ,
100102 self ::INVALID_SCHEMA => 'Schema is not valid ' ,
101103 self ::LENGTH_MIN => 'Must be at least %d characters long ' ,
104+ self ::MAX_CONTAINS => 'There must be a maximum of %d valid items in the array, %d found ' ,
102105 self ::MAX_ITEMS => 'There must be a maximum of %d items in the array, %d found ' ,
103106 self ::MAXIMUM => 'Must have a maximum value less than or equal to %d ' ,
107+ self ::MIN_CONTAINS => 'There must be a minimum of %d valid items in the array, %d found ' ,
104108 self ::MIN_ITEMS => 'There must be a minimum of %d items in the array, %d found ' ,
105109 self ::MINIMUM => 'Must have a minimum value greater than or equal to %d ' ,
106110 self ::MISSING_MAXIMUM => 'Use of exclusiveMaximum requires presence of maximum ' ,
0 commit comments