We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca2e459 commit 2796de8Copy full SHA for 2796de8
1 file changed
ion-schema/src/main/kotlin/com/amazon/ionschema/internal/CommonViolations.kt
@@ -26,12 +26,12 @@ internal object CommonViolations {
26
fun INVALID_TYPE(constraint: IonValue, value: IonValue) = Violation(
27
constraint,
28
"invalid_type",
29
- "not applicable for type %s".format(value.type.toString().toLowerCase())
+ "values of type %s are never valid for types defining %s constraints".format(value.type.toString().toLowerCase(), constraint.fieldName)
30
)
31
32
fun NULL_VALUE(constraint: IonValue) = Violation(
33
34
"null_value",
35
- "not applicable for null values"
+ "null values are never valid for types defining %s constraints".format(constraint.fieldName)
36
37
}
0 commit comments