feat: multi-authors within one article support
This commit is contained in:
parent
0eef3d8d05
commit
98d23e7c94
4 changed files with 14 additions and 12 deletions
|
@ -10,5 +10,5 @@ export const posts = ({ image }) => z.object({
|
|||
categories: z.array(z.string()).default(['uncategorized']),
|
||||
tags: z.array(z.string()).optional(),
|
||||
cover: image().optional(),
|
||||
author: reference('authors').optional(),
|
||||
author: z.union([z.array(reference('authors')), reference('authors')]).optional(),
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue