wrekenfile-converter
Version:
Convert OpenAPI and Postman specs into Wrekenfiles, with chunking for vector database storage
34 lines • 1.01 kB
TypeScript
/**
* Error handling and logging utilities for v2 converters
*/
export interface ConverterError {
message: string;
code: string;
context?: Record<string, any>;
cause?: Error;
}
/**
* Log error with context
*/
export declare function logError(error: ConverterError | Error, context?: Record<string, any>): void;
/**
* Create a converter error with context
*/
export declare function createConverterError(message: string, code: string, context?: Record<string, any>, cause?: Error): ConverterError;
/**
* Validate OpenAPI v3 spec structure
*/
export declare function validateOpenApiV3Spec(spec: any): void;
/**
* Validate OpenAPI v2 (Swagger) spec structure
*/
export declare function validateOpenApiV2Spec(spec: any): void;
/**
* Validate Postman collection structure
*/
export declare function validatePostmanCollection(collection: any): void;
/**
* Validate baseDir parameter
*/
export declare function validateBaseDir(baseDir: any): void;
//# sourceMappingURL=error-utils.d.ts.map