noteMetaSchema

A Zod schema that describes the metadata for a note.

import * as z from 'zod';

export default z.object({
	title: z.string().min(1),
	description: z.string().min(1),
	publishedDate: z.iso.date(),
	link: z.url().optional(),
	ogImageUrl: z.url().optional()
});