-
Hello, i'm wondering if the Option type is used a bit too much. Looking at So the question is basically why ever type is an Option? No mandatory types at all? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hello! This is a great question. The short answer is that we hope that prior to GA we'll be able to make many of these optional fields required. The longer answer is a bit more complicated. The underlying source of optionality stems from our need to make an SDK that is fully backwards compatible with future service updates. In the future, it's possible that fields that are always sent today may only be sent in certain cases, forcing the SDK to model them as optional from day 1. However, we recognize that this isn't a great experience as a customer. We're working on different avenues to make fields that are truly permanently required permanently required so that the SDK can model them as |
Beta Was this translation helpful? Give feedback.
-
Thanks for working on this. I understand that not everything that is always there today can be made At the very least, I would expect the ID of the resource created to always be present. Even just getting that one field non-optional would probably solve over half the use cases. |
Beta Was this translation helpful? Give feedback.
-
Just wanted to link smithy-rs #837 to this discussion. It was discussed to use other language API References or the service API docs to find out which fields are required, i.e., can be made |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hello! This is a great question. The short answer is that we hope that prior to GA we'll be able to make many of these optional fields required.
The longer answer is a bit more complicated. The underlying source of optionality stems from our need to make an SDK that is fully backwards compatible with future service updates. In the future, it's possible that fields that are always sent today may only be sent in certain cases, forcing the SDK to model them as optional from day 1.
However, we recognize that this isn't a great experience as a customer. We're working on different avenues to …