UNPKG

pipe-protocol

Version:

A protocol for large scale Interplanetary Intertool Agent Context

35 lines 859 B
/** * @file Schema Generation Implementation * @version 1.0.0 * @status STABLE - DO NOT MODIFY WITHOUT TESTS * @lastModified 2024-02-04 * * Core functionality for generating JSON Schema from data * * IMPORTANT: * - All modifications must maintain test coverage * - Handle all edge cases carefully * * Functionality: * - Type inference * - Object structure analysis * - Array type detection * - Required field detection */ interface JSONSchema { type: string; properties?: { [key: string]: JSONSchema; }; items?: JSONSchema | { oneOf: JSONSchema[]; } | Record<string, never>; required?: string[]; oneOf?: JSONSchema[]; } /** * Generates a JSON Schema for any data structure */ export declare function generateSchema(data: any): JSONSchema; export {}; //# sourceMappingURL=schemaGeneration.d.ts.map