mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
73d7440200
commit
cfc02c7440
1 changed files with 28 additions and 26 deletions
|
@ -1,6 +1,7 @@
|
|||
import { z } from 'astro/zod';
|
||||
|
||||
export const rssSchema = z.object({
|
||||
export const rssSchema = z
|
||||
.object({
|
||||
title: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
pubDate: z
|
||||
|
@ -22,7 +23,8 @@ export const rssSchema = z.object({
|
|||
.optional(),
|
||||
link: z.string().optional(),
|
||||
content: z.string().optional(),
|
||||
}).refine(val => val.title || val.description, {
|
||||
message: "At least title or description must be provided.",
|
||||
path: ["title", "description"]
|
||||
})
|
||||
.refine((val) => val.title || val.description, {
|
||||
message: 'At least title or description must be provided.',
|
||||
path: ['title', 'description'],
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue