Skip to content

Model Configuration

automaticValidations()

automaticValidations() — returns void

Available in: model Category: Validation Functions

Whether or not to enable default validations for this model.

NameTypeRequiredDefaultDescription
valuebooleanyesSet to true or false.
// Disable automatic validations (for example when automatic validations are enabled globally, but we want to disable just for this model).
config() {
	automaticValidations(false);
}