Replies: 1 comment 1 reply
-
This is a Zod 4 feature right? We're exploring how to support it without breaking folks relying on Zod 3, but aren't 100% sure there's a nice path yet. But it'll come eventually! 😄 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Summary
Support Zod's
.meta()
(and metada and registries in general) in content collection definitions.Background & Motivation
Content collection definitions are incredibly powerful and produce very useful structured output in JSON Schema, so useful, in fact, that CMSes like Astro Editor are springing up to provide bespoke editing experiences based on the JSON Schema output. However, the user experience of these generated UIs suffers when the only data that can be used to augment it is
.describe
. I'd like to see the ability to add custom metadata to fields, like titles, placeholder text, and the like, to let tools build better user experiences off of the config work we're already doing.Goals
.meta
for a content collection field.schema.json
Example
Beta Was this translation helpful? Give feedback.
All reactions