@scalar/api-client
Version:
the open source API testing client
14 lines • 573 B
TypeScript
import type { RequestExample } from '@scalar/oas-utils/entities/spec';
export type ValidationResult = {
invalidParams: Set<string>;
hasBlockingErrors: boolean;
};
/**
* Validate required parameters from an example.
*
* Returns both the set of invalid parameter keys and a flag indicating
* if there are blocking errors (empty required path parameters) that
* should prevent the request from being sent.
*/
export declare const validateParameters: (example: Partial<RequestExample> | null) => ValidationResult;
//# sourceMappingURL=validate-parameters.d.ts.map