Browse Source

Fix import of activities with Ghostfolio AI

pull/8128/head
Thomas Kaul 4 days ago
parent
commit
3a466039a3
  1. 2
      apps/api/src/app/endpoints/ai/ai.schemas.spec.ts
  2. 2
      apps/api/src/app/endpoints/ai/ai.schemas.ts

2
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([...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)"/);
}); });
}); });

2
apps/api/src/app/endpoints/ai/ai.schemas.ts

@ -71,7 +71,7 @@ export const ROW_MATCHES_OUTPUT = z.object({
.describe( .describe(
'The data source of the asset profile, as given by search-asset-profiles' '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 symbol: z
.string() .string()
.nullable() .nullable()

Loading…
Cancel
Save