UNPKG

@syngrisi/syngrisi

Version:
14 lines 524 B
// src/server/api-docs/serviceResponse.ts import { z } from "zod"; var ServiceResponsePaginationSchema = (dataSchema) => z.object({ results: z.array(dataSchema.optional()), page: z.number().openapi({ example: 1 }), limit: z.number().openapi({ example: 10 }), totalPages: z.number().openapi({ example: 2 }), totalResults: z.number().openapi({ example: 12 }), timestamp: z.number().openapi({ example: 1718035239731968 }) }); export { ServiceResponsePaginationSchema }; //# sourceMappingURL=serviceResponse.js.map