mirror of
https://github.com/maciejpedzich/cats-album.git
synced 2024-11-27 14:25:47 +01:00
Increase the description's character limit
This commit is contained in:
parent
1f5a65d977
commit
dda92399a7
@ -3,12 +3,12 @@ import { z, defineCollection } from 'astro:content';
|
||||
const cats = defineCollection({
|
||||
type: 'data',
|
||||
schema: z.object({
|
||||
name: z.string(),
|
||||
name: z.string().max(20),
|
||||
dateAdded: z
|
||||
.string()
|
||||
.or(z.date())
|
||||
.transform((val) => new Date(val)),
|
||||
description: z.string().max(250),
|
||||
description: z.string().max(300),
|
||||
image: z.object({
|
||||
src: z.string(),
|
||||
alt: z.string()
|
||||
|
Loading…
Reference in New Issue
Block a user