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

codegen: Fix SDK's serialization of operations with empty inputs #1071

Merged
merged 3 commits into from
Jan 26, 2021

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Jan 22, 2021

Fixes the JSON RPC API clients to serialize empty JSON objects for stub synthetic cloned inputs. Also this ensure empty JSON modeled inputs are correctly serialized. Previously the SDK would incorrectly skip serialization for JSON RPC input shapes with no members. Whereas JSON RPC requires operations with input modeled serialize empty JSON object.

Copy link
Contributor

@skotambkar skotambkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few questions/comments

@jasdel jasdel force-pushed the jasdel/fixup/JSONRPCEmptyReq branch from 74485be to 4c87a6e Compare January 22, 2021 23:14
@jasdel jasdel requested a review from skotambkar January 22, 2021 23:15
@jasdel jasdel force-pushed the jasdel/fixup/JSONRPCEmptyReq branch 2 times, most recently from 29ad379 to 30562cc Compare January 23, 2021 00:38
@jasdel jasdel requested a review from skotambkar January 23, 2021 01:00
@jasdel jasdel force-pushed the jasdel/fixup/JSONRPCEmptyReq branch 2 times, most recently from 65a68fe to 854cdbc Compare January 25, 2021 18:10
@jasdel jasdel force-pushed the jasdel/fixup/JSONRPCEmptyReq branch from 854cdbc to a92dfae Compare January 25, 2021 21:39
Fixes the JSON RPC API clients to serialize empty JSON objects for stub
synthetic cloned inputs. Also this ensure empty JSON modeled inputs are
correctly serialized. Previously the SDK would incorrectly skip
serialization for JSON RPC input shapes with no members. Whereas JSON
RPC requires operations with input modeled serialize empty JSON object.
@jasdel jasdel force-pushed the jasdel/fixup/JSONRPCEmptyReq branch from a92dfae to 55396a4 Compare January 25, 2021 22:33
@skotambkar skotambkar self-requested a review January 25, 2021 23:49
This was referenced Mar 15, 2021
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