fix(transformers): respect additionalProperties when generating object map transforms#3409
fix(transformers): respect additionalProperties when generating object map transforms#3409codercms wants to merge 1 commit intohey-api:mainfrom
Conversation
…t map transforms * `transformers` plugin now handles `additionalProperties` in object schemas * Applies transforms to map values from `additionalProperties` while skipping declared properties * Adds regression test fixture for `transformers-additional-properties`
|
|
|
@codercms 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: 4de44fc The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 #3409 +/- ##
==========================================
- Coverage 38.91% 38.88% -0.03%
==========================================
Files 473 473
Lines 17287 17299 +12
Branches 5210 5214 +4
==========================================
Hits 6727 6727
- Misses 8480 8488 +8
- Partials 2080 2084 +4
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: |
transformersplugin now handlesadditionalPropertiesin object schemasadditionalPropertieswhile skipping declared propertiestransformers-additional-propertiesP.S. Generated code could be improved by using something like:
But I didn't found a for-loop builder