UNPKG

the-ldk

Version:

Welcome to the LDK! A collection of custom AWS CDK constructs to help you build serverless applications faster.

21 lines 701 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.clientErrorResponseSchema = exports.successResponseSchema = void 0; const zod_1 = require("zod"); exports.successResponseSchema = zod_1.z.object({ statusCode: zod_1.z.literal(200), body: zod_1.z.object({ message: zod_1.z.string(), }), }); exports.clientErrorResponseSchema = zod_1.z.object({ statusCode: zod_1.z.literal(400), body: zod_1.z.object({ message: zod_1.z.string(), }), }); const responseSchema = zod_1.z.discriminatedUnion('statusCode', [ exports.clientErrorResponseSchema, exports.successResponseSchema, ]); //# sourceMappingURL=exampleFunction.type.js.map