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

Fix smithy sets #673

Merged
merged 3 commits into from
Jul 12, 2022
Merged

Fix smithy sets #673

merged 3 commits into from
Jul 12, 2022

Conversation

ianbotsf
Copy link
Contributor

@ianbotsf ianbotsf commented Jul 12, 2022

Issue #

(none)

Description of changes

Missed during the recent Smithy 1.22 upgrade was that sets should be fully replaced with lists even in codegen (i.e., not just models). Thus, no longer generating Set<T> for members and ignoring @uniqueItems traits.

This is a breaking change which will mandate a minor version bump.

Companion PR: aws-sdk-kotlin#652

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

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 8 Code Smells

No Coverage information No Coverage information
39.4% 39.4% Duplication

@@ -546,7 +546,7 @@ class DeserializeStructGeneratorTest {
}

@Test
fun `it deserializes a structure containing a set of primitive values`() {
fun `it deserializes a structure containing a list of unique primitive values`() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we landed on a convention for test names in some random PR discussion and then we never codified it. 😢

@ianbotsf ianbotsf merged commit 52a36af into main Jul 12, 2022
@ianbotsf ianbotsf deleted the fix-smithy-sets branch July 12, 2022 22:11
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.

2 participants