@scalar/openapi-types
Version:
Modern OpenAPI types
26 lines • 717 B
TypeScript
import { z } from 'zod';
/** The code to execute */
export declare const PostResponseSchema: z.ZodString;
/**
* Post response scripts allow to execute arbitrary code after a response is received
*
* This is useful for:
* - Extracting data from the response, or
* - Testing the response
*
* @example
* ```yaml
* x-post-response: |
* pm.test("Status code is 200", () => {
* pm.response.to.have.status(200)
* })
* ```
*/
export declare const XPostResponseSchema: z.ZodObject<{
'x-post-response': z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
'x-post-response'?: string | undefined;
}, {
'x-post-response'?: string | undefined;
}>;
//# sourceMappingURL=x-post-response.d.ts.map