Skip to content

fix: work around axios removing prototype key from request - #281

Merged
rossiam merged 1 commit into
SmartThingsCommunity:mainfrom
rossiam:axios-prototype-fix
Nov 11, 2026
Merged

rossiam merged 1 commit into
SmartThingsCommunity:mainfrom
rossiam:axios-prototype-fix

Conversation

@rossiam

@rossiam rossiam commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

recent versions of axios strip the prototype key from request data but the virtual devices API requires a field named prototype. This works around that issue by serializing the JSON before passing it to axios for the API that needs it.

@rossiam
rossiam requested a review from a team November 11, 2026 21:15
@changeset-bot

changeset-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b3cb742

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@smartthings/core-sdk Patch

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

@rossiam
rossiam merged commit 3ce17dc into SmartThingsCommunity:main Nov 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants