13 lines
460 B
TypeScript
13 lines
460 B
TypeScript
![]() |
import { JsonSchema, JsonPointer } from "./types";
|
||
|
import { Draft } from "./draft";
|
||
|
/**
|
||
|
* Test if the data is valid according to the given schema
|
||
|
*
|
||
|
* @param draft - validator
|
||
|
* @param value - value to validate
|
||
|
* @param [schema] - json schema
|
||
|
* @param [pointer] - json pointer pointing to value
|
||
|
* @return if schema does match given value
|
||
|
*/
|
||
|
export default function isValid(draft: Draft, value: any, schema?: JsonSchema, pointer?: JsonPointer): boolean;
|