diff --git a/server/routes/text2viz_routes.ts b/server/routes/text2viz_routes.ts index f77d9f2a..760ecc45 100644 --- a/server/routes/text2viz_routes.ts +++ b/server/routes/text2viz_routes.ts @@ -27,7 +27,7 @@ export function registerText2VizRoutes(router: IRouter, assistantService: Assist validate: { body: schema.object({ input_question: inputSchema, - input_instruction: schema.maybe(inputSchema), + input_instruction: schema.maybe(schema.string({ maxLength: TEXT2VEGA_INPUT_SIZE_LIMIT })), ppl: schema.string(), dataSchema: schema.string(), sampleData: schema.string(),