Fix schema validation error

This commit is contained in:
Joseph Garrone 2024-12-15 11:47:59 +01:00
parent 76416ddd5b
commit 2659cf391c

View File

@ -19,7 +19,7 @@ export type ParsedRealmJson = {
credentials: {
type: string /* "password" or something else */;
}[];
clientRoles: Record<string, string[]>;
clientRoles?: Record<string, string[]>;
}[];
roles: {
client: Record<
@ -65,7 +65,7 @@ const zParsedRealmJson = (() => {
type: z.string()
})
),
clientRoles: z.record(z.array(z.string()))
clientRoles: z.record(z.array(z.string())).optional()
})
),
roles: z.object({