Closed Ten0 closed 5 months ago
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
It is possible to construct a BehaviorVersion:
Using the following syntax:
While the documentation says that
latest
may change behavior butv2023_11_09
would keep its behavior, that is impossible because one cannot add new fields to BehaviorVersion without that being a breaking change due to the currently allowed explicit construction.Expected Behavior
should not compile, one should be forced to use either
latest
orv2023_11_09
to instantiate a BehaviorVersion.Current Behavior
compiles
Possible Solution
That should be achieved by defining the struct as so:
Additional Information/Context
This is technically a breaking change but since this was released recently and it's documented that this API shouldn't be used, better now than later.
Version