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
classLengthConstraintViolation(valactual:Number?, valconstraint:LengthConstraint): ConstraintViolation(constraint.errorMessage ?: "Constraint violation: the length of the string should be ${
61
+
classLengthConstraintViolation(valactual:Number?, valconstraint:LengthConstraint): ConstraintViolation("Constraint violation: the length of the string should be ${
63
62
{
64
63
val min ="${constraint.min}"
65
64
val max ="${constraint.max}"
@@ -70,6 +69,4 @@ class LengthConstraintViolation(val actual: Number?, val constraint: LengthConst
70
69
else->"anything"
71
70
}
72
71
}()
73
-
}, but it is $actual")
74
-
75
-
classNotAStringViolation(valvalue:Any?): ConstraintViolation("Constraint violation: $value is not a string")
Copy file name to clipboardExpand all lines: src/main/kotlin/com/papsign/ktor/openapigen/annotations/type/string/pattern/RegularExpressionConstraintProcessor.kt
0 commit comments