Transform URLs to array (#9890)

pull/9880/head^2
Joe Au-Yeung 2023-07-03 01:43:23 -04:00 committed by GitHub
parent c46c9bfe90
commit 9ef8903309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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]),
]),
});