Skip to content

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? ​

optional entity?: 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? ​

optional property?: DataProperty | NavigationProperty

Defined in: src/validation/validate.ts:21

The DataProperty or NavigationProperty being validated. Set when Breeze validates a property.


propertyName? ​

optional propertyName?: 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? ​

optional value?: 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.

Released under the MIT License.