diff --git a/apps/api/src/deployment/http-schemas/deployment.schema.ts b/apps/api/src/deployment/http-schemas/deployment.schema.ts index 88a538ddd8..f2f4ca566a 100644 --- a/apps/api/src/deployment/http-schemas/deployment.schema.ts +++ b/apps/api/src/deployment/http-schemas/deployment.schema.ts @@ -131,9 +131,11 @@ export const UpdateDeploymentResponseSchema = z.object({ data: DeploymentResponseSchema }); +export const deploymentListMaxLimit = 100; + export const ListDeploymentsQuerySchema = z.object({ skip: z.coerce.number().min(0).optional(), - limit: z.coerce.number().min(1).default(1000).optional() + limit: z.coerce.number().min(1).max(deploymentListMaxLimit).default(deploymentListMaxLimit).optional() }); export const ListDeploymentsResponseSchema = z.object({ @@ -148,8 +150,6 @@ export const ListDeploymentsResponseSchema = z.object({ }) }); -export const deploymentListMaxLimit = 100; - export const ListWithResourcesParamsSchema = z.object({ address: AkashAddressSchema.openapi({ description: "Wallet Address",