smithy-lang / smithy-kotlin

Smithy code generator for Kotlin (in development)
Apache License 2.0
77 stars 26 forks source link

feat(codegen): generate client side error correction #958

Closed aajtodd closed 11 months ago

aajtodd commented 11 months ago

Issue \

n/a

Description of changes

Implement support for client side error correction which sets defaults when @required is present for output shape members. This is to enable making these shape members non-nullable such that if a server doesn't actually send a required member in a response we don't explode at deserialization.

NOTE: Nullablity hasn't changed in this PR, that will come when we enable CLIENT_CAREFUL check mode.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication