KeywordMethods
@tsed/ajv
Usage
typescript
import { KeywordMethods } from "@tsed/ajv";
See /packages/specs/ajv/src/types/interfaces/KeywordMethods.ts.
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;