@scalar/oas-utils
Version:
Open API spec and Yaml handling utilities
17 lines • 729 B
TypeScript
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
import type { Operation } from '../entities/spec/index.js';
/**
* Get the query parameters from an operation.
*
* Example: [ { name: 'foobar', value: '' } ]
*
* - OpenAPI 3.x: Possible values are "query", "header", "path" or "cookie".
*/
export declare function getParametersFromOperation(operationParameters: Operation['parameters'], pathParameters: OpenAPIV3_1.ParameterObject[] | undefined, where: 'query' | 'header' | 'path' | 'cookie' | 'formData' | 'body', requiredOnly?: boolean): {
name: string;
description: string | null;
value: any;
required: boolean;
enabled: boolean;
}[];
//# sourceMappingURL=get-parameters-from-operation.d.ts.map