openapi-alchemist
Version:
Transform OpenAPI 3 to Swagger 2 with alchemical precision
24 lines (23 loc) • 747 B
TypeScript
import { BaseFormat } from '../../types';
export declare class OpenApi3ToSwagger2Converter {
private readonly spec;
private readonly directory?;
constructor(data: BaseFormat);
convert(): any;
resolveReference(base: any, obj: any, shouldClone: boolean): any;
private fixRef;
private fixRefs;
private convertInfos;
private convertOperations;
private convertOperationParameters;
private convertParameters;
private copySchemaProperties;
private copySchemaXProperties;
private convertResponses;
private convertSchema;
private convertSchemas;
private convertDiscriminatorMapping;
private convertSecurityDefinitions;
private isJsonMimeType;
private getSupportedMimeTypes;
}