fix: Require tags field to be present (#539)

This commit is contained in:
Lachlan Collins
2023-12-21 17:47:08 +11:00
committed by GitHub
parent 3de9192cfe
commit 2c9fca3240
2 changed files with 22 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ export const packagesSchema = z.array(
'Testing',
'User Interaction'
]),
tags: z.array(z.string()).max(5).optional()
tags: z.array(z.string()).max(5)
})
);
@@ -41,6 +41,6 @@ export const templatesSchema = z.array(
repository: z.string().url(),
description: z.string().max(250),
category: z.enum(['Svelte Add', 'SvelteKit', 'Svelte']),
tags: z.array(z.string()).max(5).optional()
tags: z.array(z.string()).max(5)
})
);