Skip to content

Commit

Permalink
fix zod
Browse files Browse the repository at this point in the history
  • Loading branch information
vincelwt committed Oct 2, 2024
1 parent e41c571 commit 58c3408
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/backend/src/api/v1/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,8 @@ const views = new Router({

const ViewSchema = z.object({
name: z.string(),
data: z.array(
z.union([
z.string(),
z.object({
id: z.string(),
params: z.record(z.any()),
}),
]),
),
columns: z.record(z.string()),
data: z.array(z.any()),
columns: z.array(z.any()),
icon: z.string().optional(),
type: z.enum(["llm", "thread", "trace"]),
});
Expand Down

0 comments on commit 58c3408

Please sign in to comment.