Skip to content

Conversation

@essential-randomness
Copy link
Member

tl;dr: the astro ao3 loader needs zod schemas for content collections, so here they are!

The less tl;dr is we wrote these manually until now, but I wanted to see whether we could generate them from TS types. The answer is yes, but we need the original source code...which leads us to this PR.

Overall, Zod is marked as an external peer dependency, so the bundle size increase is tiny. We could make a completely different package, but I don't think it's worth it.

Copy link
Collaborator

@siotle siotle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@siotle siotle merged commit caa8279 into main Jan 22, 2026
1 check passed
@siotle siotle deleted the zod branch January 22, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants