UNPKG

json-schema-library

Version:

Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation

23 lines (22 loc) 701 B
import { ValidationPath } from "./Keyword"; import { SchemaNode } from "./types"; type Options = { /** array node */ node: SchemaNode; /** array data */ data: unknown[]; /** array index to evaluate */ key: number; /** pointer to array */ pointer: string; path: ValidationPath; }; /** * Returns true if an item is evaluated * * - Note that this check is partial, the remainder is done in unevaluatedItems * - This function currently checks for schema that are not visible by simple validation * - We could introduce this method as a new keyword-layer */ export declare function isItemEvaluated({ node, data, key, pointer, path }: Options): boolean; export {};