wrekenfile-converter
Version:
Convert OpenAPI and Postman specs to Wrekenfile format with mini-chunking for vector DB storage
18 lines (17 loc) • 594 B
TypeScript
interface ValidationResult {
isValid: boolean;
errors: string[];
warnings: string[];
}
interface WrekenfileStructure {
VERSION?: string;
INIT?: {
DEFAULTS?: any[];
};
INTERFACES?: Record<string, any>;
STRUCTS?: Record<string, any>;
}
declare function fixWrekenfile(data: WrekenfileStructure): string;
declare function validateWrekenfile(filePath: string): ValidationResult;
declare function printValidationResult(result: ValidationResult): void;
export { validateWrekenfile, fixWrekenfile, ValidationResult, WrekenfileStructure, printValidationResult };