Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zod schema generator with working schema references #315

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

stephlow
Copy link
Member

@stephlow stephlow commented Oct 9, 2024

Some improvements to the schema generator. Couldn't properly configure the related reference schemas in the previous version, which this one fixes.

This one doesn't have support for adding doc comments to the .describe method on zod schemas, but we don't really use that atm anyway

I added a polyfill for memoizeOne, which the underlying rust library adds to the generated schemas. The actual library doesn't play well with our current ts setup so I just replaced it with a simple function call, no actual memoization for now

Copy link

pkg-pr-new bot commented Oct 18, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/fiberplane/fpx/@fiberplane/studio@315
pnpm add https://pkg.pr.new/fiberplane/fpx/@fiberplane/hono-otel@315

commit: 43bb6ad

@stephlow stephlow changed the title WIP: Zod schema generator with working schema references Zod schema generator with working schema references Oct 18, 2024
@stephlow stephlow marked this pull request as ready for review October 18, 2024 13:53
@stephlow stephlow requested a review from a team as a code owner October 18, 2024 13:53
@stephlow stephlow requested review from flenter and hatchan and removed request for a team October 18, 2024 13:53
@stephlow stephlow merged commit 3435113 into tauri-main Oct 30, 2024
6 checks passed
@stephlow stephlow deleted the zod-generator branch October 30, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants