Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.57 KB

ddl-validator.md

File metadata and controls

38 lines (27 loc) · 1.57 KB

DDLValidator

Kind: global class

new DDLValidator()

Digital Data Layer schema validation for ddl-tools.

ddlValidator.operationIsValid(path, value) ⇒ boolean

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

ddlValidator.configure()

Allows package consumers to customize validation functionality.

Kind: instance method of DDLValidator
Params: object options - Configuration options as key-value pairs