Skip to content

Commit

Permalink
disable zodios request/response validation in runtime and use server …
Browse files Browse the repository at this point in the history
…errors instead
  • Loading branch information
Onatcer committed Aug 8, 2024
1 parent 7c1b828 commit 06a35cb
Show file tree
Hide file tree
Showing 21 changed files with 389 additions and 444 deletions.
26 changes: 13 additions & 13 deletions openapi.json.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,20 +167,20 @@ const TimeEntryStoreRequest = z
end: z.union([z.string(), z.null()]).optional(),
billable: z.boolean(),
description: z.union([z.string(), z.null()]).optional(),
tags: z.union([z.array(z.string()), z.null()]).optional(),
tags: z.union([z.array(z.string().uuid()), z.null()]).optional(),
})
.passthrough();
const TimeEntryUpdateMultipleRequest = z
.object({
ids: z.array(z.string()),
ids: z.array(z.string().uuid()),
changes: z
.object({
member_id: z.string().uuid(),
project_id: z.union([z.string(), z.null()]),
task_id: z.union([z.string(), z.null()]),
billable: z.boolean(),
description: z.union([z.string(), z.null()]),
tags: z.union([z.array(z.string()), z.null()]),
tags: z.union([z.array(z.string().uuid()), z.null()]),
})
.partial()
.passthrough(),
Expand All @@ -195,7 +195,7 @@ const TimeEntryUpdateRequest = z
end: z.union([z.string(), z.null()]),
billable: z.boolean(),
description: z.union([z.string(), z.null()]),
tags: z.union([z.array(z.string()), z.null()]),
tags: z.union([z.array(z.string().uuid()), z.null()]),
})
.partial()
.passthrough();
Expand Down Expand Up @@ -2041,22 +2041,22 @@ Users with the permission `time-entries:view:own` can only use this en
{
name: 'member_ids',
type: 'Query',
schema: z.array(z.string()).min(1).optional(),
schema: z.array(z.string().uuid()).min(1).optional(),
},
{
name: 'project_ids',
type: 'Query',
schema: z.array(z.string()).min(1).optional(),
schema: z.array(z.string().uuid()).min(1).optional(),
},
{
name: 'tag_ids',
type: 'Query',
schema: z.array(z.string()).min(1).optional(),
schema: z.array(z.string().uuid()).min(1).optional(),
},
{
name: 'task_ids',
type: 'Query',
schema: z.array(z.string()).min(1).optional(),
schema: z.array(z.string().uuid()).min(1).optional(),
},
{
name: 'client_ids',
Expand Down Expand Up @@ -2387,27 +2387,27 @@ If the group parameters are all set to `null` or are all missing, the
{
name: 'member_ids',
type: 'Query',
schema: z.array(z.string()).min(1).optional(),
schema: z.array(z.string().uuid()).min(1).optional(),
},
{
name: 'project_ids',
type: 'Query',
schema: z.array(z.string()).min(1).optional(),
schema: z.array(z.string().uuid()).min(1).optional(),
},
{
name: 'client_ids',
type: 'Query',
schema: z.array(z.string()).min(1).optional(),
schema: z.array(z.string().uuid()).min(1).optional(),
},
{
name: 'tag_ids',
type: 'Query',
schema: z.array(z.string()).min(1).optional(),
schema: z.array(z.string().uuid()).min(1).optional(),
},
{
name: 'task_ids',
type: 'Query',
schema: z.array(z.string()).min(1).optional(),
schema: z.array(z.string().uuid()).min(1).optional(),
},
],
response: z
Expand Down
Loading

0 comments on commit 06a35cb

Please sign in to comment.