Skip to content

Commit

Permalink
fix: condition
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Jan 20, 2024
1 parent 39e1e82 commit 5e35a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro-rss/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const rssSchema = z.object({
.optional(),
link: z.string().optional(),
content: z.string().optional(),
}).refine(val => !val.title && !val.description, {
}).refine(val => val.title || val.description, {
message: "At least title or description must be provided.",
path: ["title", "description"]
})

0 comments on commit 5e35a3d

Please sign in to comment.