23
23
public enum ValidatorTypeCode {
24
24
ADDITIONAL_PROPERTIES ("additionalProperties" , "1001" , new MessageFormat (
25
25
"{0}.{1}: is not defined in the schema and the schema does not allow additional properties" )),
26
- ALL_OF ("allOf" , "1002" , new MessageFormat ("" )),
27
- ANY_OF ("anyOf" , "1003" , new MessageFormat ("" )),
28
- CROSS_EDITS ("crossEdits" , "" , new MessageFormat ("" )),
29
- DEPENDENCIES ("dependencies" , "1007" , new MessageFormat ("" )),
30
- EDITS ("edits" , "" , new MessageFormat ("" )),
26
+ ALL_OF ("allOf" , "1002" , new MessageFormat ("{0}: should be valid to all of the schemas {1} " )),
27
+ ANY_OF ("anyOf" , "1003" , new MessageFormat ("{0}: should be valid to any of the schemas {1} " )),
28
+ CROSS_EDITS ("crossEdits" , "" , new MessageFormat ("{0}: has some error with 'cross edits' " )),
29
+ DEPENDENCIES ("dependencies" , "1007" , new MessageFormat ("{0}: has some error with dependencies {1} " )),
30
+ EDITS ("edits" , "" , new MessageFormat ("{0}: has some error with 'edits' " )),
31
31
ENUM ("enum" , "1008" , new MessageFormat ("{0}: does not have a value in the enumeration {1}" )),
32
32
FORMAT ("format" , "1009" , new MessageFormat ("{0}: does not match the {1} pattern {2}" )),
33
33
ITEMS ("items" , "1010" , new MessageFormat ("{0}[{1}]: no validator found at this index" )),
@@ -43,17 +43,17 @@ public enum ValidatorTypeCode {
43
43
NOT_ALLOWED ("notAllowed" , "1033" , new MessageFormat ("{0}.{1}: is not allowed but it is in the data" )),
44
44
NOT ("not" , "1020" , new MessageFormat ("{0}: should not be valid to the schema {1}" )),
45
45
ONE_OF ("oneOf" , "1022" , new MessageFormat ("{0}: should be valid to one and only one of the schemas {1}" )),
46
- PATTERN_PROPERTIES ("patternProperties" , "1024" , new MessageFormat ("" )),
46
+ PATTERN_PROPERTIES ("patternProperties" , "1024" , new MessageFormat ("{0}: has some error with 'pattern properties' " )),
47
47
PATTERN ("pattern" , "1023" , new MessageFormat ("{0}: does not match the regex pattern {1}" )),
48
- PROPERTIES ("properties" , "1025" , new MessageFormat ("" )),
48
+ PROPERTIES ("properties" , "1025" , new MessageFormat ("{0}: has some error with 'properties' " )),
49
49
READ_ONLY ("readOnly" , "1032" , new MessageFormat ("{0}: is a readonly field, it cannot be changed" )),
50
- REF ("ref" , "1026" , new MessageFormat ("" )),
50
+ REF ("ref" , "1026" , new MessageFormat ("{0}: has some error with 'refs' " )),
51
51
REQUIRED ("required" , "1028" , new MessageFormat ("{0}.{1}: is missing but it is required" )),
52
52
TYPE ("type" , "1029" , new MessageFormat ("{0}: {1} found, {2} expected" )),
53
53
UNION_TYPE ("unionType" , "1030" , new MessageFormat ("{0}: {1} found, but {2} is required" )),
54
54
UNIQUE_ITEMS ("uniqueItems" , "1031" , new MessageFormat ("{0}: the items in the array must be unique" ));
55
-
56
- private static Map <String , ValidatorTypeCode > constants = new HashMap <String , ValidatorTypeCode >();
55
+
56
+ private static Map <String , ValidatorTypeCode > constants = new HashMap <String , ValidatorTypeCode >();
57
57
58
58
static {
59
59
for (ValidatorTypeCode c : values ()) {
0 commit comments