mockingjar-lib
Version:
A TypeScript library for AI-powered JSON mock data generation using schema-based configuration
9 lines (8 loc) • 313 B
TypeScript
import { JsonSchema, SchemaField } from '@/types/schema';
export interface ValidationError {
parent: string | null;
affectedField: string;
reason: string;
structure: SchemaField | null;
}
export declare function jsonValidator(data: Record<string, unknown>, schema: JsonSchema): ValidationError[];