NuxtN
Nuxt7mo ago
5 replies
Lean

Nuxt content markdown validation

Is there a way to validate nuxt content .md files based on the collection schema ?

So far, ive added categories: z.array(z.enum(VALID_CATEGORIES)).optional(), to schema of my collection, but when writing the content .md file, i can write whatever i want, i would get no warnings about it and it would still work correctly, even tho im guessing it should not.
Was this page helpful?