AjvDataValidationCtx
@tsed/ajv
Usage
typescript
import { AjvDataValidationCtx } from "@tsed/ajv";
See /packages/specs/ajv/src/types/interfaces/KeywordMethods.ts.
Overview
ts
interface AjvDataValidationCtx<T extends string | number = string | number> {
dataPath: string;
parentData: {
[K in T]: any;
};
parentDataProperty: T;
rootData: Record<string, any> | any[];
dynamicAnchors: {
[Ref in string]?: ValidateFunction;
};
}
dataPath
ts
dataPath: string;
parentData
ts
parentData: {
[K in T]: any;
};
parentDataProperty
ts
parentDataProperty: T;
rootData
ts
rootData: Record<string, any> | any[];
dynamicAnchors
ts
dynamicAnchors: {
[Ref in string]?: ValidateFunction;
};