September 9th, 2024
Breaking Changes:
- 🐛
⚠️ (server, smithy-rs#3813) Operations with event stream member shapes must includeValidationExceptionin the errors list. This is necessary because the member shape is a required field, and the builder for the operation input or output returns astd::result::Resultwith the error set tocrate::model::ValidationExceptionField.
New this release:
-
🎉 (server, smithy-rs#3803) Setting the
addValidationExceptionToConstrainedOperationscodegen flag addsaws.smithy.framework#ValidationExceptionto operations with constrained inputs that do not already have this exception added.Sample
smithy-build-template.json:{ "...", "plugins": { "rust-server-codegen": { "service": "ServiceToGenerateSDKFor", "module": "amzn-sample-server-sdk", "codegen": { "addValidationExceptionToConstrainedOperations": true, } } } } -
🐛 (all, smithy-rs#3805) Fix bug in
DateTime::from_secs_f64where certain floating point values could lead to a panic.