Home Reference Source

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
public

getSchemaID(schema: *): string

retrieves ID attribute from schema

public
public

flags model node as being in sync with tree

public

flags model node as being out of sync with tree

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
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:

NameTypeAttributeDescription
obj *

Return:

$ajv

public fill(arr: *, value: *, min: *): any[] source

import {fill} from 'datamatic/src/Pipeline/Utils.js'

Fills array to enforce 2 callback minimum

Params:

NameTypeAttributeDescription
arr *
value *
min *

Return:

any[]

public getDefaults(schema: *): object | null source

import {getDefaults} from 'datamatic/src/Model/utils.js'

Params:

NameTypeAttributeDescription
schema *

Return:

object | null

public getPatternPropertyDefaults(schema: *): * source

import {getPatternPropertyDefaults} from 'datamatic/src/Model/utils.js'

Params:

NameTypeAttributeDescription
schema *

Return:

*

public getSchemaID(schema: *): string source

import {getSchemaID} from 'datamatic/src/Model/utils.js'

retrieves ID attribute from schema

Params:

NameTypeAttributeDescription
schema *

Return:

string

public handleAsync(cb: *): function source

import {handleAsync} from 'datamatic/src/Pipeline/Utils.js'

Params:

NameTypeAttributeDescription
cb *

Return:

function

public makeClean(model: BaseModel) source

import {makeClean} from 'datamatic/src/Model/utils.js'

flags model node as being in sync with tree

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
model BaseModel

public mapArgs(args: *): *[] | {schema: {schema, anyOf, $id}, exec: (function(*): *)}[] source

import {mapArgs} from 'datamatic/src/Pipeline/Utils.js'

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
model *
key *
value *

Return:

boolean | string | string[]

public validate(model: *, path: *, value: *): * source

import {validate} from 'datamatic/src/Model/utils.js'

Params:

NameTypeAttributeDescription
model *
path *
value *

Return:

*

public walkObject(path: *, toWalk: *, delimiter: *): { source

import {walkObject} from 'datamatic/src/Model/utils.js'

Navigates given object by path

Params:

NameTypeAttributeDescription
path *
toWalk *
delimiter *

Return:

{

& any}

public wrapCallback(cb: *): Function source

import {wrapCallback} from 'datamatic/src/Pipeline/Utils.js'

Params:

NameTypeAttributeDescription
cb *

Return:

Function

Static Private

private refValidation(model: BaseModel, value: json | array | boolean | number | string): boolean | string | object[] source

import {refValidation} from 'datamatic/src/Model/utils.js'

Performs model data validation against json-schema

Params:

NameTypeAttributeDescription
model BaseModel
value json | array | boolean | number | string

Return:

boolean | string | object[]