Model
RxVo Model Entry-point
Static Method Summary
| Static Public Methods | ||
| public static |
Creates new PropertiesModel from JSON data |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(schemas: json, options: object) |
|
Member Summary
| Public Members | ||
| public get |
errors: error[] | null: * Getter for Ajv validation error messages |
|
| public get |
Returns true if object is frozen |
|
| public get |
Getter for root Model |
|
| public set |
Setter for root Model value |
|
| public get |
schema: any: * Getter for document's JSON-Schema |
|
Method Summary
| Public Methods | ||
| public |
Adds Schema to Validator instance |
|
| public |
Freezes document object |
|
| public |
getModelsInPath(to: *): Array[] | Object[] Retrieves all Models at given path |
|
| public |
|
|
| public |
getSchemaForKey(id: *): * returns schema with given id |
|
| public |
getSchemaForPath(path: *): any Retrieves JSON-Schema element for given Path |
|
| public |
pipeline(pipesOrSchemas: *): Pipe |
|
| public |
subscribe(observer: *): Observable Subscribes observer to root Model |
|
| public |
subscribeTo(path: *, observer: *): Observable Subscribes observer to Model at path |
|
| public |
toJSON(): * Implements toJSON |
|
| public |
Implements toString |
|
| public |
useSchema(id: *) Selects schema to validate against (advanced option, use wisely) |
|
| public |
validate(path: *, value: *): * | void | RegExpExecArray Validates data against named schema |
|
Static Public Methods
Public Constructors
Public Members
public get errors: error[] | null: * source
Getter for Ajv validation error messages
Return:
| error[] | null |
Public Methods
public addSchema(schema: *): boolean source
Adds Schema to Validator instance
Params:
| Name | Type | Attribute | Description |
| schema | * |
public getModelsInPath(to: *): Array[] | Object[] source
Retrieves all Models at given path
Params:
| Name | Type | Attribute | Description |
| to | * |
public getSchemaForKey(id: *): * source
returns schema with given id
Params:
| Name | Type | Attribute | Description |
| id | * |
Return:
| * |
public getSchemaForPath(path: *): any source
Retrieves JSON-Schema element for given Path
Params:
| Name | Type | Attribute | Description |
| path | * |
Return:
| any |
public pipeline(pipesOrSchemas: *): Pipe source
Params:
| Name | Type | Attribute | Description |
| pipesOrSchemas | * |
Return:
| Pipe |
public subscribe(observer: *): Observable source
Subscribes observer to root Model
Params:
| Name | Type | Attribute | Description |
| observer | * |
Return:
| Observable |
public subscribeTo(path: *, observer: *): Observable source
Subscribes observer to Model at path
Params:
| Name | Type | Attribute | Description |
| path | * | ||
| observer | * |
Return:
| Observable |
public useSchema(id: *) source
Selects schema to validate against (advanced option, use wisely)
Params:
| Name | Type | Attribute | Description |
| id | * |
public validate(path: *, value: *): * | void | RegExpExecArray source
Validates data against named schema
Params:
| Name | Type | Attribute | Description |
| path | * | ||
| value | * |
Return:
| * | void | RegExpExecArray |
