mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 00:26:40 +00:00
feat: added max to search or
This commit is contained in:
@@ -39,5 +39,5 @@ export type TSearchResource = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const buildSearchZodSchema = <T extends TSearchResource>(schema: z.ZodObject<T>) => {
|
export const buildSearchZodSchema = <T extends TSearchResource>(schema: z.ZodObject<T>) => {
|
||||||
return schema.extend({ $or: schema.array().optional() }).optional();
|
return schema.extend({ $or: schema.array().max(5).optional() }).optional();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user