@scalar/oas-utils
Version:
Open API spec and Yaml handling utilities
14 lines • 568 B
TypeScript
import type { ContentType } from '@scalar/types/legacy';
import type { Operation } from '../entities/spec/index.js';
/**
* Get the request body from the operation.
*/
export declare function getRequestBodyFromOperation(operation: Pick<Operation, 'requestBody' | 'parameters'>, selectedExampleKey?: string | number, omitEmptyAndOptionalProperties?: boolean): {
mimeType: ContentType;
text?: string | undefined;
params?: {
name: string;
value?: string | File;
}[];
} | null;
//# sourceMappingURL=get-request-body-from-operation.d.ts.map