mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 01:55:10 +02:00
use strict zod objects and hide proto on targets
This commit is contained in:
parent
44b932937f
commit
ba3505a385
14 changed files with 154 additions and 162 deletions
|
@ -14,10 +14,12 @@ const createRoleParamsSchema = z.object({
|
|||
orgId: z.string(),
|
||||
});
|
||||
|
||||
const createRoleSchema = z.object({
|
||||
name: z.string().min(1).max(255),
|
||||
description: z.string().optional(),
|
||||
});
|
||||
const createRoleSchema = z
|
||||
.object({
|
||||
name: z.string().min(1).max(255),
|
||||
description: z.string().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const defaultRoleAllowedActions: ActionsEnum[] = [
|
||||
ActionsEnum.getOrg,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue