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