json-schema-library
Version:
Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation
23 lines (22 loc) • 719 B
TypeScript
import { ValidationPath } from "./Keyword";
import { SchemaNode } from "./types";
type Options = {
/** array node */
node: SchemaNode;
/** array data */
data: Record<string, unknown>;
/** array index to evaluate */
key: string;
/** 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 isPropertyEvaluated({ node, data, key, pointer, path }: Options): boolean;
export {};