length
Use the length validator to constrain a field to a minimum and/or maximum length before saving:
export default class User extends ApplicationModel {
...
@deco.Validates('length', { min: 4, max: 64 })
public email: DreamColumn<User, 'email'>
}
Either bound may be omitted to constrain only the other side.