0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00

[ci] format

This commit is contained in:
Tak Tran 2024-01-22 12:09:16 +00:00 committed by astrobot-houston
parent 73d7440200
commit cfc02c7440

View file

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