chore: upgrade openapi-ts to 0.99.0#38152
Draft
hyoban wants to merge 4 commits into
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #38152 +/- ##
==========================================
+ Coverage 85.34% 85.40% +0.05%
==========================================
Files 4967 5122 +155
Lines 258427 262758 +4331
Branches 49034 50092 +1058
==========================================
+ Hits 220567 224398 +3831
- Misses 33568 34068 +500
Partials 4292 4292
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Fixes #<issue number>.Summary
@hey-api/openapi-tsback to0.99.0and regenerate API contracts with the updated generator.0.99.0does not emit extra rootclient,core,client.gen.ts,sdk.gen.ts, ortypes.gen.tsartifacts.FormInputConfigdiscriminator change remains visible in the contract diff for upstream evaluation.autofix.ciregenerate frontend contracts when contract generator inputs or dependency files change, not only whenapi/**changes.Upstream status
This PR should stay as a draft until the upstream discriminator issue is fixed and released by
@hey-api/openapi-ts: hey-api/hey-api#4138. The candidate upstream fix is hey-api/hey-api#4139.Until that lands in a published release, the generated Zod v4 contracts can still expose the
const + defaultdiscriminator issue instead of applying a local Dify workaround.Validation:
pnpm --dir packages/contracts gen-api-contract-from-openapipnpm --dir packages/contracts type-checkgit diff --checkFrom Codex
Screenshots
N/A
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint gods