presence
Use the presence validator when you want to guarantee a field is not blank before saving:
export default class Post extends ApplicationModel {
...
@deco.Validates('presence')
public content: string
}
Use the presence validator when you want to guarantee a field is not blank before saving:
export default class Post extends ApplicationModel {
...
@deco.Validates('presence')
public content: string
}