fulldotdev / ui

The Astro UI library to build content sites
https://ui.full.dev
MIT License
239 stars 12 forks source link

14 feat/dynamic collection schemas using layouts for default values #15

Closed silveltman closed 6 months ago

silveltman commented 6 months ago

Adds zod collection schemas utilizing transform() merge a collection entry with the data of a layout entry.

Use getEntry data runs through zod zod runs transform ransform gets the layout entry by the key layout layout data is deepmerged merged entry is returned