Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not break models with dangerous set value types #1125

Merged
merged 2 commits into from
Mar 10, 2022

Conversation

adamthom-amzn
Copy link
Contributor

Issue #, if available:

Description of changes:

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

It's too big of a churn right now to actually break builds that use dangerous
types with sets. This change leaves the documentation as-is, so the only way to
use a set with a dangerous type is experimentation or having already done so.
@adamthom-amzn adamthom-amzn requested a review from a team as a code owner March 10, 2022 00:48

Summary
Indicates that the items in a :ref:`list` MUST be unique.
Trait selector
``:test(list > member > :test(string, blob, byte, short, integer, long, bigDecimal, bigInteger))``
``:test(list > member > simpleType)``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this different than in the prelude?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I straight up did a revert commit without even looking at the contents. I don't know.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, so was incorrect before too. I'm fine with the revert commit, but maybe another commit to fix the documentation.

Copy link
Contributor

@gosar gosar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. the doc fix can be separate PR or same.

@adamthom-amzn adamthom-amzn merged commit c1a898e into smithy-lang:main Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants