-
- Downloads
Remove TODO about required `httpHeader`-bound collection shapes (#1397)
We do support required `httpHeader`-bound collection shapes, as evidenced by the test operation this commit adds, which is generated by the server, that does not use `Option` for `required` member shapes. This is because even though the deserialization always returns an optional collection, we return `None` if no headers are found (as opposed to an empty collection), so the call that sets the member field on the operation structure does nothing; when `build()` gets called, a `BuildError` is raised because the member is required.
Showing
- codegen-core/common-test-models/misc.smithy 30 additions, 5 deletionscodegen-core/common-test-models/misc.smithy
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/http/HttpBindingGenerator.kt 0 additions, 1 deletion...degen/core/smithy/generators/http/HttpBindingGenerator.kt
Loading
Please register or sign in to comment