From 3a466039a364e919b37ac161c5d8a39d1d654c5c Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 11 Oct 2026 13:51:17 +0200 Subject: [PATCH] Fix import of activities with Ghostfolio AI --- apps/api/src/app/endpoints/ai/ai.schemas.spec.ts | 2 +- apps/api/src/app/endpoints/ai/ai.schemas.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/app/endpoints/ai/ai.schemas.spec.ts b/apps/api/src/app/endpoints/ai/ai.schemas.spec.ts index 613043356c..1e7474b7df 100644 --- a/apps/api/src/app/endpoints/ai/ai.schemas.spec.ts +++ b/apps/api/src/app/endpoints/ai/ai.schemas.spec.ts @@ -90,6 +90,6 @@ describe.each([ expect([...required].sort()).toEqual(Object.keys(properties).sort()); } - expect(JSON.stringify(jsonSchema)).not.toMatch(/"(max|min)Length"/); + expect(JSON.stringify(jsonSchema)).not.toMatch(/"(max|min)(imum|Length)"/); }); }); diff --git a/apps/api/src/app/endpoints/ai/ai.schemas.ts b/apps/api/src/app/endpoints/ai/ai.schemas.ts index 66f1e92bf1..a2cae1d5da 100644 --- a/apps/api/src/app/endpoints/ai/ai.schemas.ts +++ b/apps/api/src/app/endpoints/ai/ai.schemas.ts @@ -71,7 +71,7 @@ export const ROW_MATCHES_OUTPUT = z.object({ .describe( 'The data source of the asset profile, as given by search-asset-profiles' ), - id: z.number().int().describe('The id of the asset, as given'), + id: z.number().describe('The id of the asset, as given'), symbol: z .string() .nullable()