You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not allowed in IDL 2.0 models, but is a synthetic trait added to the semantic model and never serialized. It's added to the semantic model to provide a compatibility bridge between Smithy 1.0 and 2.0 for users of this library that expect a Smithy 1.0 semantic model. We marked the Java trait for box as @Deprecated to discourage people from continuing to check for it in code. Is the fact that it's marked as @Deprecated in Java causing an issue?
Hi! I was under the impression
@box
doesn't get added in IDL 2.0. This comment on theBoxTrait
class seems to confirm that:smithy/smithy-model/src/main/java/software/amazon/smithy/model/traits/BoxTrait.java
Lines 26 to 27 in e9cca36
but it's still being added to my simple shapes in IDL 2.0:
Runnable snippet here
Is this expected? (i.e. the trait is still allowed in the model, but not in the IDL) - if so, should
BoxTrait
even be@Deprecated
?The text was updated successfully, but these errors were encountered: