@paultaku/node-mock-server
Version:
A TypeScript-based mock server with automatic Swagger-based mock file generation
22 lines • 745 B
TypeScript
/**
* Mock File Generator
*
* Generates mock response files from parsed Swagger specifications.
* Handles file organization and directory structure creation.
*/
/**
* Generation result with statistics and metadata
*/
export interface GenerationResult {
filesCreated: number;
pathsProcessed: number;
outputDirectory: string;
}
/**
* Generate mock files from a Swagger/OpenAPI specification
* @param swaggerPath - Path to the Swagger YAML file
* @param outputPath - Directory where mock files will be created
* @returns Generation result with statistics
*/
export declare function generateMockFromSwagger(swaggerPath: string, outputPath: string): Promise<GenerationResult>;
//# sourceMappingURL=mock-file-generator.d.ts.map