|
26 | 26 | import java.util.Objects;
|
27 | 27 | import java.util.Optional;
|
28 | 28 | import java.util.Set;
|
29 |
| -import java.util.TreeMap; |
30 | 29 | import java.util.TreeSet;
|
31 | 30 | import java.util.function.Consumer;
|
32 | 31 | import java.util.logging.Logger;
|
@@ -1662,15 +1661,7 @@ private void generateOperationRequestDeserializer(
|
1662 | 1661 | handleContentType(context, operation, bindingIndex);
|
1663 | 1662 | handleAccept(context, operation, bindingIndex);
|
1664 | 1663 | // Start deserializing the response.
|
1665 |
| - writer.openBlock("const contents: $T = {", "};", inputType, () -> { |
1666 |
| - // Only set a type and the members if we have output. |
1667 |
| - operation.getInput().ifPresent(shapeId -> { |
1668 |
| - // Set all the members to undefined to meet type constraints. |
1669 |
| - StructureShape target = model.expectShape(shapeId).asStructureShape().get(); |
1670 |
| - new TreeMap<>(target.getAllMembers()) |
1671 |
| - .forEach((memberName, memberShape) -> writer.write( |
1672 |
| - "$L: undefined,", memberName)); |
1673 |
| - }); |
| 1664 | + writer.openBlock("const contents: any = map({", "});", () -> { |
1674 | 1665 | readRequestHeaders(context, operation, bindingIndex, "output");
|
1675 | 1666 | });
|
1676 | 1667 | readQueryString(context, operation, bindingIndex);
|
|
0 commit comments