fix(zod): support guid format in Zod v4/mini#3552
Conversation
|
|
|
Error agent completed without reporting progress |
|
@erikwski is attempting to deploy a commit to the Hey API Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: 08d9909 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3552 +/- ##
==========================================
- Coverage 39.10% 39.09% -0.01%
==========================================
Files 493 493
Lines 18368 18372 +4
Branches 5444 5452 +8
==========================================
Hits 7183 7183
- Misses 9028 9032 +4
Partials 2157 2157
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@hey-api/codegen-core
@hey-api/json-schema-ref-parser
@hey-api/nuxt
@hey-api/openapi-ts
@hey-api/shared
@hey-api/types
@hey-api/vite-plugin
commit: |
This reverts commit a055ce9.

fix(zod): support
guidformat in Zod v4/mini and add regression coverageFirst Contribution Note
This is my first contribution to this project.
I am not fully sure whether external contributions are currently accepted, but I prepared this PR following the repository contribution guidance and test workflow.
Summary
This PR fixes GUID format handling in the Zod plugin for compatibility versions
4andmini.Before this change, OpenAPI schemas using:
were generated as a plain string in Zod v4 output.
After this change:
z.guid()z.guid()z.string())What Changed
guididentifier in Zod constants.format: guidmapping in:cdoIdtoguidId.Validation
Executed:
Result:
Notes