UNPKG

@apideck/portman

Version:

Port OpenAPI Spec to Postman Collection, with contract & variation tests included

33 lines (32 loc) 1.17 kB
import { OpenAPIV3 } from 'openapi-types'; export interface IOasMappedOperation { id?: string; path: string; method: string; pathRef: string; tags: string[]; schema: OpenAPIV3.OperationObject; requestHeaders: OpenAPIV3.ParameterObject[]; pathParams: OpenAPIV3.ParameterObject[]; queryParams: OpenAPIV3.ParameterObject[]; cookieParams: OpenAPIV3.ParameterObject[]; requestBody(): OpenAPIV3.RequestBodyObject | undefined; } export declare class OasMappedOperation implements IOasMappedOperation { id?: string; path: string; method: string; pathRef: string; tags: string[]; requestHeaders: OpenAPIV3.ParameterObject[]; pathParams: OpenAPIV3.ParameterObject[]; queryParams: OpenAPIV3.ParameterObject[]; cookieParams: OpenAPIV3.ParameterObject[]; schema: OpenAPIV3.OperationObject; responseCodes: string[]; constructor(path: string, method: string, operation: OpenAPIV3.OperationObject); private mapParameters; requestBody(): OpenAPIV3.RequestBodyObject | undefined; requestBodySchema(mediaType: string): OpenAPIV3.SchemaObject | undefined; private mapResponseCodes; }