Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(request): build request body by operation payload field #126

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

windmgc
Copy link
Member

@windmgc windmgc commented Jul 31, 2024

Summary

This is a follow-up fix for #120 .

The PR modifies the request build again with the following changes: when the payload field is specified inside the input schema, the request body will be built based on the parameter that specified by the payload field.

This behavior imitates the behavior defined in aws-sdk-js: https://github.com/aws/aws-sdk-js/blob/02153340ce052614c5437fe46ab1f49bfd8483f7/lib/protocol/rest_json.js#L24-L41
as well as https://github.com/aws/aws-sdk-js/blob/02153340ce052614c5437fe46ab1f49bfd8483f7/lib/protocol/rest_xml.js#L10-L26

Issues

This fixes the breaking change behavior found here: Kong/kong#13433
FTI-6138

Copy link

github-actions bot commented Jul 31, 2024

Luacheck Report

2 tests   2 ✅  0s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 575df09.

♻️ This comment has been updated with latest results.

@windmgc
Copy link
Member Author

windmgc commented Jul 31, 2024

@Tieske Could you please help check this? Thanks in advance!
It is part of the 3.8 release

outsinre
outsinre previously approved these changes Aug 2, 2024
tzssangglass
tzssangglass previously approved these changes Aug 2, 2024
@windmgc windmgc dismissed stale reviews from tzssangglass and outsinre via 575df09 August 2, 2024 06:14
@windmgc windmgc merged commit 0f54bd2 into main Aug 2, 2024
9 checks passed
@windmgc windmgc deleted the fix-blob-payload branch August 2, 2024 07:04
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.

4 participants