Skip to content

Commit

Permalink
fix(api): make runUids and scanIds fields optional in history schema
Browse files Browse the repository at this point in the history
  • Loading branch information
brnovasco committed Jan 27, 2025
1 parent 21b9104 commit 6a19292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/schemas/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const getResponseSchema = z.object({
itemUid: z.string().uuid(),
result: z.object({
exitStatus: z.string().optional(),
runUids: z.array(z.string()),
scanIds: z.array(z.string()),
runUids: z.array(z.string()).optional(),
scanIds: z.array(z.coerce.number()).optional(),
timeStart: z.number(),
timeStop: z.number(),
msg: z.string().optional(),
Expand Down

0 comments on commit 6a19292

Please sign in to comment.