[request]: sdk model structs should not have Optional
type if the field is marked as required
in smithy.
#267
Labels
breaking-change
This issue requires a breaking change to remediate.
feature-request
A feature should be added or improved.
Community Note
Tell us about your request
Currently, all the fields in generated types are marked as Optional. But, the sdk should generate types where fields should not be marked as Optional if it is marked as @required in Smithy.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
The generated sdk model types should not have
Optional
type if the field is marked asrequired
in smithy.Are you currently working around this issue?
Because, it is marked as Optional, there is no compile-time validation to say if the entire type is fully constructed or not.
As a work around, we create another wrapper type which does not use Optional for required fields.
Additional context
Anything else we should know?
Attachments
If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)
The text was updated successfully, but these errors were encountered: