breeze-client / ValidationContext
Interface: ValidationContext
Defined in: src/validation/validate.ts:17
The entity and property being validated. The ValidationMessageContext passed to a ValidationFn extends it with the validator's settings.
Extended by
Properties
entity?
optionalentity?:Entity
Defined in: src/validation/validate.ts:19
The entity whose property is being validated. Set when Breeze validates a property of an entity; an entity-level validator gets the entity as its value instead.
property?
optionalproperty?:DataProperty|NavigationProperty
Defined in: src/validation/validate.ts:21
The DataProperty or NavigationProperty being validated. Set when Breeze validates a property.
propertyName?
optionalpropertyName?:string
Defined in: src/validation/validate.ts:23
The name of the property being validated: a property path, such as address.city, for a property of a complex object.
value?
optionalvalue?:any
Defined in: src/validation/validate.ts:25
The value that failed validation, so that a message template can show it as %value%. Set by Validator.validate when validation fails.