Function
Static Public Summary | ||
public |
castToExec(obj: *): $ajv |
|
public |
fill(arr: *, value: *, min: *): any[] Fills array to enforce 2 callback minimum |
|
public |
getDefaults(schema: *): object | null |
|
public |
getPatternPropertyDefaults(schema: *): * |
|
public |
getSchemaID(schema: *): string retrieves ID attribute from schema |
|
public |
handleAsync(cb: *): function |
|
public |
flags |
|
public |
flags |
|
public |
mapArgs(args: *): *[] | {schema: {schema, anyOf, $id}, exec: (function(*): *)}[] |
|
public |
refAtKeyValidation(model: *, key: *, value: *): boolean | string | string[] Performs model data validation at KEY against json-schema |
|
public |
validate(model: *, path: *, value: *): * |
|
public |
walkObject(path: *, toWalk: *, delimiter: *): { Navigates given object by path |
|
public |
wrapCallback(cb: *): Function |
Static Private Summary | ||
private |
refValidation(model: BaseModel, value: json | array | boolean | number | string): boolean | string | object[] Performs model data validation against json-schema |
Static Public
public castToExec(obj: *): $ajv source
import {castToExec} from 'datamatic/src/Pipeline/Utils.js'
Params:
Name | Type | Attribute | Description |
obj | * |
public fill(arr: *, value: *, min: *): any[] source
import {fill} from 'datamatic/src/Pipeline/Utils.js'
Fills array to enforce 2 callback minimum
Params:
Name | Type | Attribute | Description |
arr | * | ||
value | * | ||
min | * |
Return:
any[] |
public getDefaults(schema: *): object | null source
import {getDefaults} from 'datamatic/src/Model/utils.js'
Params:
Name | Type | Attribute | Description |
schema | * |
public getPatternPropertyDefaults(schema: *): * source
import {getPatternPropertyDefaults} from 'datamatic/src/Model/utils.js'
Params:
Name | Type | Attribute | Description |
schema | * |
Return:
* |
public getSchemaID(schema: *): string source
import {getSchemaID} from 'datamatic/src/Model/utils.js'
retrieves ID attribute from schema
Params:
Name | Type | Attribute | Description |
schema | * |
public handleAsync(cb: *): function source
import {handleAsync} from 'datamatic/src/Pipeline/Utils.js'
Params:
Name | Type | Attribute | Description |
cb | * |
public makeClean(model: BaseModel) source
import {makeClean} from 'datamatic/src/Model/utils.js'
flags model
node as being in sync with tree
Params:
Name | Type | Attribute | Description |
model | BaseModel |
public makeDirty(model: BaseModel) source
import {makeDirty} from 'datamatic/src/Model/utils.js'
flags model
node as being out of sync with tree
Params:
Name | Type | Attribute | Description |
model | BaseModel |
public mapArgs(args: *): *[] | {schema: {schema, anyOf, $id}, exec: (function(*): *)}[] source
import {mapArgs} from 'datamatic/src/Pipeline/Utils.js'
Params:
Name | Type | Attribute | Description |
args | * |
Return:
*[] | {schema: {schema, anyOf, $id}, exec: (function(*): *)}[] |
public refAtKeyValidation(model: *, key: *, value: *): boolean | string | string[] source
import {refAtKeyValidation} from 'datamatic/src/Model/utils.js'
Performs model data validation at KEY against json-schema
Params:
Name | Type | Attribute | Description |
model | * | ||
key | * | ||
value | * |
public validate(model: *, path: *, value: *): * source
import {validate} from 'datamatic/src/Model/utils.js'
Params:
Name | Type | Attribute | Description |
model | * | ||
path | * | ||
value | * |
Return:
* |
public walkObject(path: *, toWalk: *, delimiter: *): { source
import {walkObject} from 'datamatic/src/Model/utils.js'
Navigates given object by path
Params:
Name | Type | Attribute | Description |
path | * | ||
toWalk | * | ||
delimiter | * |
Return:
{ | & any} |
public wrapCallback(cb: *): Function source
import {wrapCallback} from 'datamatic/src/Pipeline/Utils.js'
Params:
Name | Type | Attribute | Description |
cb | * |