Home Reference Source
import {AjvWrapper} from 'datamatic/src/ajvWrapper.js'
private class | source

AjvWrapper

Wrapper for Ajv JSON-PropertiesModel Validator

Static Method Summary

Static Public Methods
public static

resolvePath(model: *): string

Helper method to derive path for given model todo: review for removal

Constructor Summary

Public Constructor
public

constructor(owner: *, schemas: *, ajvOptions: *)

Member Summary

Public Members
public get

errors: *

public

Method Summary

Public Methods
public

exec(path: string, value: any): *

Executes validator at PropertiesModel $model path against value

Static Public Methods

public static resolvePath(model: *): string source

Helper method to derive path for given model todo: review for removal

Params:

NameTypeAttributeDescription
model *

Return:

string

Public Constructors

public constructor(owner: *, schemas: *, ajvOptions: *) source

Params:

NameTypeAttributeDescription
owner *
schemas *
ajvOptions *

Public Members

public get errors: * source

public path: string source

Public Methods

public exec(path: string, value: any): * source

Executes validator at PropertiesModel $model path against value

Params:

NameTypeAttributeDescription
path string
value any

Return:

*