UNPKG

wrekenfile-converter

Version:

Convert OpenAPI and Postman specs into Wrekenfiles, with chunking for vector database storage

22 lines 835 B
export declare function cleanYaml(yamlString: string): string; export declare function checkYamlForHiddenChars(yamlString: string): void; export declare function validateYaml(yamlString: string): void; export declare function removeTypeQuotes(yamlString: string): string; /** * Recursively removes undefined values from an object. * This prevents js-yaml from generating invalid YAML or unexpected output. */ export declare function removeUndefinedValues(obj: any): any; /** * Complete YAML generation pipeline: * 1. Remove undefined values * 2. Dump to YAML string * 3. Remove type quotes * 4. Clean YAML * 5. Check for hidden characters * 6. Validate YAML * * This is the standard pipeline used by all converters. */ export declare function generateYamlString(data: any): string; //# sourceMappingURL=yaml-utils.d.ts.map