KeywordMethods
@tsed/ajv
Usage
typescript
import { KeywordMethods } from "@tsed/ajv";Overview
ts
interface KeywordMethods {
code?: (cxt: KeywordCxt, ruleType?: string) => void;
compile?: (schema: any, parentSchema: AnySchemaObject, it: SchemaObjCxt) => AjvDataValidateFunction;
validate?: AjvSchemaValidateFunction | AjvDataValidateFunction;
}code:
ts
code?: (cxt: KeywordCxt, ruleType?: string) => void;compile:
ts
compile?: (schema: any, parentSchema: AnySchemaObject, it: SchemaObjCxt) => AjvDataValidateFunction;validate
ts
validate?: AjvSchemaValidateFunction | AjvDataValidateFunction;