Properties
Private
Readonly
_validator
_validator: Ajv
Methods
compile
- compile(schema: boolean | object): ValidateFunction<unknown>
-
Returns ValidateFunction<unknown>
removeSchema
- removeSchema(schemaKeyRef?: string | boolean | object | RegExp): Ajv
-
Parameters
-
Optional
schemaKeyRef: string | boolean | object | RegExp
Returns Ajv
validate
- validate<T>(schema: object, data: unknown): asserts data is T
-
Type Parameters
-
T = Record<string, unknown>
Parameters
-
schema: object
-
data: unknown
Returns asserts data is T
validateSchema
- validateSchema(schema: object): asserts schema is SchemaObject
-
Returns asserts schema is SchemaObject