Skip to content

Commit

Permalink
fix serialization of renamed json members
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiscigl committed Dec 14, 2023
1 parent 3a13ba9 commit 228039a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ GetGeneratedPolicyResult& GetGeneratedPolicyResult::operator =(const Aws::Amazon

}

if(jsonValue.ValueExists("GeneratedPolicyResults"))
if(jsonValue.ValueExists("generatedPolicyResult"))
{
m_generatedPolicyResults = jsonValue.GetObject("GeneratedPolicyResults");
m_generatedPolicyResults = jsonValue.GetObject("generatedPolicyResult");

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,9 @@ void renameShapeMember(Shape parentShape,
shapes.remove(originalShapeName);
}
if (!Objects.equals(originalMemberKey, newMemberKey)) {
parentShape.getMembers().put(newMemberKey, parentShape.getMembers().get(originalMemberKey));
final ShapeMember member = parentShape.getMembers().get(originalMemberKey);
member.setLocationName(originalMemberKey);
parentShape.getMembers().put(newMemberKey, member);
parentShape.RemoveMember(originalMemberKey);
}
if (isPayload)
Expand Down

0 comments on commit 228039a

Please sign in to comment.