Browse Source

Improve symbol validation

pull/8000/head
Thomas Kaul 2 weeks ago
parent
commit
e558801183
  1. 7
      apps/api/src/app/endpoints/mcp/mcp.schemas.ts

7
apps/api/src/app/endpoints/mcp/mcp.schemas.ts

@ -141,7 +141,12 @@ export const IMPORT_ACTIVITIES_PARAMETERS = z.object({
), ),
fee: z.number().min(0).describe('The fee of the activity'), fee: z.number().min(0).describe('The fee of the activity'),
quantity: z.number().min(0).describe('The quantity of the activity'), quantity: z.number().min(0).describe('The quantity of the activity'),
symbol: z.string().min(1).describe('The symbol of the asset profile'), symbol: z
.string()
.trim()
.min(1)
.max(SYMBOL_MAXIMUM_LENGTH)
.describe('The symbol of the asset profile'),
type: z.enum(ActivityType).describe('The type of the activity'), type: z.enum(ActivityType).describe('The type of the activity'),
unitPrice: z.number().min(0).describe('The unit price of the activity') unitPrice: z.number().min(0).describe('The unit price of the activity')
}) })

Loading…
Cancel
Save