feat(server): new search schemas and query builders (#28686)

This commit is contained in:
Timon
2026-07-22 22:33:23 +00:00
committed by GitHub
parent 36dfc98527
commit f24a128319
9 changed files with 1980 additions and 33 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export function nonEmptyPartial<T extends z.ZodRawShape>(shape: T) {
.object(shape)
.partial()
.refine((data) => Object.values(data as Record<string, unknown>).some((value) => value !== undefined), {
message: 'At least one field must be provided',
message: `At least one of the following fields is required: ${Object.keys(shape).join(', ')}`,
});
}