Transform URLs to array (#9890)
parent
c46c9bfe90
commit
9ef8903309
|
@ -5,5 +5,11 @@ export const appDataSchema = z.object({});
|
|||
export const appKeysSchema = z.object({
|
||||
client_id: z.string().min(1),
|
||||
client_secret: z.string().min(1),
|
||||
redirect_uris: z.string().min(1),
|
||||
redirect_uris: z.union([
|
||||
z.string().url().array(),
|
||||
z
|
||||
.string()
|
||||
.url()
|
||||
.transform((url) => [url]),
|
||||
]),
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue