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
@@ -106,7 +106,11 @@ describe(MemoryController.name, () => {
it('should require at least one field', async () => {
const { status, body } = await request(ctx.getHttpServer()).put(`/memories/${factory.uuid()}`).send({});
expect(status).toBe(400);
expect(body).toEqual(errorDto.validationError([{ path: [], message: 'At least one field must be provided' }]));
expect(body).toEqual(
errorDto.validationError([
{ path: [], message: 'At least one of the following fields is required: isSaved, seenAt, memoryAt' },
]),
);
});
});