Kind: global class
Digital Data Layer schema validation for ddl-tools.
Determines whether the schema allows the value
given to be set at the
given path
(if path
is not undefined), or validates value
as a full
digital data layer structure (if path
is undefined). Returns true if the
schema allows the operation; false otherwise.
Kind: instance method of DDLValidator
Returns: boolean
- - Whether or not the operation is valid
Param | Type | Description |
---|---|---|
path | string | Array.<string> |
The path of the element being updated, or undefined to validate value as a full digital data layer structure |
value | mixed |
The value to set at the path given, or a full digital data layer structure if path is undefined |
Allows package consumers to customize validation functionality.
Kind: instance method of DDLValidator
Params: object
options - Configuration options as key-value pairs