UNPKG

@dpkit/core

Version:

Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames

14 lines (13 loc) 445 B
import type { MetadataError } from "../Error.js"; import type { Descriptor } from "./Descriptor.js"; /** * Validate a descriptor (JSON Object) against a JSON Schema * It uses Ajv for JSON Schema validation under the hood * It returns a list of errors (empty if valid) */ export declare function validateDescriptor(descriptor: Descriptor, options: { profile: Descriptor; }): Promise<{ valid: boolean; errors: MetadataError[]; }>;