Korean Validation Reference

Last updated by admin 4 years ago

??? ??? ???

??

class User {
   Long id
   Long version

String login String password def constraints = { login(length:5..15,blank:false,unique:true) password(length:5..15,blank:false) } }

??? ???? ????

|??||??|??||?? ??|| |blank|???? ??? ??? ??? ? ??? false? ??|
login(blank:false)
|className.propertyName.blank| |email|???? ??? ?? ???? ????? true? ??|
contactEmail(email:true)
|className.propertyName.email.invalid| |inList|??? ??? ??? ?? ????? ??|
name(inList:["Joe", "Fred", "Bob"] )
|className.propertyName.not.inList| |length|Groovy? range? ???? ??? ?? ??? ??? ??|
login(length:5..15)
|className.propertyName.length.toolong ?? className.propertyName.length.tooshort| |min|java.lang.Comparable? ???? ???? ??, ???? ??|
age(min:new Date())
|className.propertyName.min.notmet| |minLength|??? ?? ??? ?? ??? ??|
login(minLength:5)
|className.propertyName.minLength.notmet| |minSize|Collection?? ??? ?? ??? ??|
children(minSize:5)
|className.propertyName.minSize.notmet| |matches|??? ?? ???(regular expression)? ??|
login(matches:"[a-zA-Z]")
|className.propertyName.matches.invalid| |max|java.lang.Comparable? ???? ???? ??, ???? ??|
age(max:new Date())
|className.propertyName.max.exceeded| |maxLength|??? ?? ??? ?? ??? ??|
login(maxLength:5)
|className.propertyName.maxLength.exceeded| |maxSize|Collection?? ??? ?? ??? ??|
children(maxSize:25)
|className.propertyName.maxSize.exceeded| |notEqual|??? ??? ??? ?? ?? ??? ??|
login(notEqual:"Bob")
|className.propertyName.notEual| |nullable|false? ???? ?? ??? null? ? ??? ??|
age(nullable:false)
|className.propertyName.nullable| |range|Groovy? range? ???? ?? ?? ?? ?? ?? ??|
age(range:minAge..maxAge)
|className.propertyName.range.toosmall ?? className.propertyName.range.toobig| |size|Groovy? rnage? ???? Collection?? ??? ??? ??|
children(size:5..15)
|className.propertyName.size.toosmall ?? className.propertyName.size.toobig| |unique|??? ???(unique) ?? ??? ? ??? ????? true? ??(? ????? ??? ? ??????? ??? ?????)|
login(unique:true)
|className.propertyName.not.unique| |url|???? URL ???? ????? true? ??|
homePage(url:true)
|className.propertyName.url.invalid|