UNPKG

@scalar/oas-utils

Version:

Open API spec and Yaml handling utilities

13 lines 516 B
import type { ContentType, TransformedOperation } from '@scalar/types/legacy'; /** * Get the request body from the operation. */ export declare function getRequestBodyFromOperation(operation: Omit<TransformedOperation, 'httpVerb'>, selectedExampleKey?: string | number, omitEmptyAndOptionalProperties?: boolean): { mimeType: ContentType; text?: string | undefined; params?: { name: string; value?: string; }[]; } | null; //# sourceMappingURL=get-request-body-from-operation.d.ts.map