Conversation
|
|
🦋 Changeset detectedLatest commit: bf50a55 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…aramsStructure Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
…amsStructure Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
|
Leaping into action... |
@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: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3458 +/- ##
=======================================
Coverage 40.11% 40.11%
=======================================
Files 478 478
Lines 17488 17488
Branches 5294 5294
=======================================
Hits 7016 7016
Misses 8425 8425
Partials 2047 2047
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:
|

When using
paramsStructure: 'flat', required properties from an inline requestBody object schema were incorrectly generated as optional — and theparametersargument itself was marked optional even when required fields existed.Root Cause
In
getSignatureParameters(),property.required?.includes(originalName)was evaluated against the individual property schema (which never has arequiredarray), instead of the parent schema.Changes
packages/openapi-ts/src/plugins/@hey-api/sdk/shared/signature.ts— fixisRequiredlookup to useoperation.body.schema.requiredinstead ofproperty.requiredpackages/openapi-ts-tests/sdks/__snapshots__/opencode/— updateflatandexport-allsnapshots to reflect corrected required/optional signatures across 14 affected operations (e.g.appLog,mcpAdd,tuiAppendPrompt,sessionInit, etc.)Example
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.