Skip to content

Commit

Permalink
Merge pull request #150 from konecty/hotfix/access-validation
Browse files Browse the repository at this point in the history
Hotfix/access validation
  • Loading branch information
7sete7 authored Jun 19, 2024
2 parents 0b417bd + 0cea37b commit 3744864
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/imports/model/Access.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { z } from 'zod';

export const AccessSchema = z.object({
type: z.literal('access'),
_id: z.string(),
document: z.string(),
name: z.string(),
collection: z.string().optional(),
});
export const AccessSchema = z
.object({
type: z.literal('access'),
_id: z.string(),
document: z.string(),
name: z.string(),
collection: z.string().optional(),
})
.passthrough();

export type Access = z.infer<typeof AccessSchema>;

0 comments on commit 3744864

Please sign in to comment.