Skip to content

Generate restJson1 clients - #974

Open
stobrien89 wants to merge 1 commit into
python-client-aws-endpointsfrom
python-client-rest-json
Open

stobrien89 wants to merge 1 commit into
python-client-aws-endpointsfrom
python-client-rest-json

Conversation

@stobrien89

Copy link
Copy Markdown
Contributor

Issue #, if available:

Stacked on #973.

Description of changes:

Python clients now support aws.protocols#restJson1, matching Java's RestJsonIntegration:

  • smithy_python.aws.AWS_PROTOCOLS adds restJson1 to the core protocols. Clients use RestJsonClientProtocol and AsyncRestJsonClientProtocol from smithy-aws-core[json]. The CLI uses this registry.
  • ClientPlan.from_model takes the protocol IDs whose traits the service schema keeps.

New rest-json-1-client snapshot. It omits the 10 streaming operations, which client generation doesn't support yet, through a new omitOperations projection setting. 236 of the 244 vectors run (the other 8 belong to the omitted operations). The vector harness now checks host, query params, and list headers, and it handles AWS configs, documents, idempotency tokens and placeholder inputs.

Strict xfails: the 7 vectors Java also skips (input defaults, httpChecksumRequired, request compression), plus the RestJsonHttpPayloadTraitsWithNoBlobBody response. For that one, the runtime reads an empty blob payload as b"" instead of unset.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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.

1 participant