openapi-ts icon indicating copy to clipboard operation
openapi-ts copied to clipboard

WIP: feat(sdk): support setting validators per operation

Open mrlubos opened this issue 1 month ago • 5 comments

mrlubos avatar Nov 04 '25 08:11 mrlubos

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

⚠️ No Changeset found

Latest commit: ebf4f3410553fae62a74385e7df2edc7a329b620

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Nov 04 '25 08:11 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
hey-api-docs Ready Ready Preview Comment Nov 4, 2025 8:49am

vercel[bot] avatar Nov 04 '25 08:11 vercel[bot]

Codecov Report

:x: Patch coverage is 8.47458% with 54 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 28.08%. Comparing base (bb30d6e) to head (2296b1e).

Files with missing lines Patch % Lines
...ages/openapi-ts/src/plugins/@hey-api/sdk/config.ts 10.34% 26 Missing :warning:
...pi-ts/src/plugins/@hey-api/sdk/shared/validator.ts 4.16% 23 Missing :warning:
...pi-ts/src/plugins/@hey-api/sdk/shared/operation.ts 16.66% 5 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2928      +/-   ##
==========================================
- Coverage   28.12%   28.08%   -0.05%     
==========================================
  Files         360      360              
  Lines       33327    33338      +11     
  Branches     1921     1920       -1     
==========================================
- Hits         9374     9362      -12     
- Misses      23926    23949      +23     
  Partials       27       27              
Flag Coverage Δ
unittests 28.08% <8.47%> (-0.05%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Nov 04 '25 08:11 codecov[bot]

Open in StackBlitz

npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/codegen-core@2928
npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/nuxt@2928
npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/openapi-ts@2928
npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/vite-plugin@2928

commit: ebf4f34

pkg-pr-new[bot] avatar Nov 04 '25 08:11 pkg-pr-new[bot]