Headless Umbraco with Astro: Zod schema from Swagger

Anyone thats using Umbraco headless via Content Delivery API, managed to generate, a usable Zod schema?

Im trying to generate a schema for the Astro content collection using openapi-zod-client but its struggling with the complexity of the contend delivery API… seems OK with forms.

Funnily enough I was looking at ASTRO today for use with Umbraco. I did a bit of vibe-coding with ChatGTP and it seemed to come up with some suggestions. Maybe vibe it out, and see if it can fill in the blanks.

There was an Astro workshop at Codegarden with some use of Zod, give this repo (and this file particularly) a look!

The API client is generated with Orval rather than hey-api or openapi-zod-client

Not tried Orval, so will give that a go and report back!