UNPKG

@scalar/api-client

Version:

the open source API testing client

13 lines 630 B
import type { OpenAPIV3_1 } from '@scalar/openapi-types'; /** * Converts a Postman collection JSON string to an OpenAPI specification document. * * This function transforms a Postman collection into a valid OpenAPI 3.1 document * that can be used throughout the application. The convert function handles parsing * and transformation internally. * * @throws {Error} When the input is not valid JSON or when the conversion fails * due to invalid Postman collection structure */ export declare const getOpenApiFromPostman: (postmanJson: string) => OpenAPIV3_1.Document; //# sourceMappingURL=get-openapi-from-postman.d.ts.map