You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// For each member property in the error, see if its name exists as an insert in the error message and if so replace with the stringified property value
55
+
// So for example - "Number '%actual' is not a multiple of the 'multipleOf' value '%expected'." - we would expect "actual" and "expected" members.
56
+
for (ValueType::ConstMemberIterator insertsItr = error.MemberBegin();
casekValidateErrorMultipleOf: returnRAPIDJSON_ERROR_STRING("Number '%actual' is not a multiple of the 'multipleOf' value '%expected'.");
82
+
casekValidateErrorMaximum: returnRAPIDJSON_ERROR_STRING("Number '%actual' is greater than the 'maximum' value '%expected'.");
83
+
casekValidateErrorExclusiveMaximum: returnRAPIDJSON_ERROR_STRING("Number '%actual' is greater than or equal to the 'exclusiveMaximum' value '%expected'.");
84
+
casekValidateErrorMinimum: returnRAPIDJSON_ERROR_STRING("Number '%actual' is less than the 'minimum' value '%expected'.");
85
+
casekValidateErrorExclusiveMinimum: returnRAPIDJSON_ERROR_STRING("Number '%actual' is less than or equal to the 'exclusiveMinimum' value '%expected'.");
86
+
87
+
casekValidateErrorMaxLength: returnRAPIDJSON_ERROR_STRING("String '%actual' is longer than the 'maxLength' value '%expected'.");
88
+
casekValidateErrorMinLength: returnRAPIDJSON_ERROR_STRING("String '%actual' is shorter than the 'minLength' value '%expected'.");
89
+
casekValidateErrorPattern: returnRAPIDJSON_ERROR_STRING("String '%actual' does not match the 'pattern' regular expression.");
90
+
91
+
casekValidateErrorMaxItems: returnRAPIDJSON_ERROR_STRING("Array of length '%actual' is longer than the 'maxItems' value '%expected'.");
92
+
casekValidateErrorMinItems: returnRAPIDJSON_ERROR_STRING("Array of length '%actual' is shorter than the 'minItems' value '%expected'.");
93
+
casekValidateErrorUniqueItems: returnRAPIDJSON_ERROR_STRING("Array has duplicate items at indices '%duplicates' but 'uniqueItems' is true.");
94
+
casekValidateErrorAdditionalItems: returnRAPIDJSON_ERROR_STRING("Array has an additional item at index '%disallowed' that is not allowed by the schema.");
95
+
96
+
casekValidateErrorMaxProperties: returnRAPIDJSON_ERROR_STRING("Object has '%actual' members which is more than 'maxProperties' value '%expected'.");
97
+
casekValidateErrorMinProperties: returnRAPIDJSON_ERROR_STRING("Object has '%actual' members which is less than 'minProperties' value '%expected'.");
98
+
casekValidateErrorRequired: returnRAPIDJSON_ERROR_STRING("Object is missing the following members required by the schema: '%missing'.");
99
+
casekValidateErrorAdditionalProperties: returnRAPIDJSON_ERROR_STRING("Object has an additional member '%disallowed' that is not allowed by the schema.");
100
+
casekValidateErrorPatternProperties: returnRAPIDJSON_ERROR_STRING("Object has 'patternProperties' that are not allowed by the schema.");
101
+
casekValidateErrorDependencies: returnRAPIDJSON_ERROR_STRING("Object has missing property or schema dependencies, refer to following errors.");
102
+
103
+
casekValidateErrorEnum: returnRAPIDJSON_ERROR_STRING("Property has a value that is not one of its allowed enumerated values.");
104
+
casekValidateErrorType: returnRAPIDJSON_ERROR_STRING("Property has a type '%actual' that is not in the following list: '%expected'.");
105
+
106
+
casekValidateErrorOneOf: returnRAPIDJSON_ERROR_STRING("Property did not match any of the sub-schemas specified by 'oneOf', refer to following errors.");
107
+
casekValidateErrorOneOfMatch: returnRAPIDJSON_ERROR_STRING("Property matched more than one of the sub-schemas specified by 'oneOf'.");
108
+
casekValidateErrorAllOf: returnRAPIDJSON_ERROR_STRING("Property did not match all of the sub-schemas specified by 'allOf', refer to following errors.");
109
+
casekValidateErrorAnyOf: returnRAPIDJSON_ERROR_STRING("Property did not match any of the sub-schemas specified by 'anyOf', refer to following errors.");
110
+
casekValidateErrorNot: returnRAPIDJSON_ERROR_STRING("Property matched the sub-schema specified by 'not'.");
0 commit comments