Validator
Static Method Summary
| Static Public Methods | ||
| public static |
deriveSchema(schemasOrConfig: *): Object | null |
|
| public static |
validateSchemas(schemas: *): boolean |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(schemaOrConfig: *, options: *) Accepts one |
|
Member Summary
| Public Members | ||
| public get |
errors: *: * Getter for validation errors incurred from model setter |
|
| public get |
Getter for Object.isFrozen status of this node and it's ancestors |
|
| public set |
model(data: *) Setter for validator data value |
|
| public get |
Getter for validator data value |
|
Method Summary
| Public Methods | ||
| public |
Applies Object.freeze to model and triggers complete notification for pipeline |
|
| public |
subscribe(handler: *): * Registers notification handler to observable |
|
| public |
toJSON(): {}|*[] Provides model value as JSON |
|
| public |
Overrides toString. |
|
| public |
validate(value: *): * Performs schema validation of value |
|
| public |
valueOf(): {}|*[] Overrides valueOf. |
|
Static Public Methods
Public Constructors
public constructor(schemaOrConfig: *, options: *) source
Accepts one json-schema or tx-config per instance and an (optional) Ajv config
Params:
| Name | Type | Attribute | Description |
| schemaOrConfig | * | ||
| options | * | (optional) |
Public Members
Public Methods
public freeze(): Validator source
Applies Object.freeze to model and triggers complete notification for pipeline
public subscribe(handler: *): * source
Registers notification handler to observable
Params:
| Name | Type | Attribute | Description |
| handler | * |
Return:
| * |
public validate(value: *): * source
Performs schema validation of value
Params:
| Name | Type | Attribute | Description |
| value | * |
Return:
| * |
