archetecture security fix
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.idParamSchema = exports.listQuerySchema = exports.replySchema = void 0;
|
||||
const zod_1 = require("zod");
|
||||
exports.replySchema = zod_1.z.object({
|
||||
companyReply: zod_1.z.string().min(1),
|
||||
});
|
||||
exports.listQuerySchema = zod_1.z.object({
|
||||
rating: zod_1.z.coerce.number().int().min(1).max(5).optional(),
|
||||
page: zod_1.z.coerce.number().int().min(1).default(1),
|
||||
pageSize: zod_1.z.coerce.number().int().min(1).max(100).default(20),
|
||||
});
|
||||
exports.idParamSchema = zod_1.z.object({
|
||||
id: zod_1.z.string(),
|
||||
});
|
||||
//# sourceMappingURL=review.schemas.js.map
|
||||
Reference in New Issue
Block a user