Skip to content

Commit

Permalink
fix: make input_instruction can be empty string (#299)
Browse files Browse the repository at this point in the history
Signed-off-by: Yulong Ruan <[email protected]>
  • Loading branch information
ruanyl committed Sep 12, 2024
1 parent 651dc99 commit 52b57e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/text2viz_routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 52b57e2

Please sign in to comment.