Skip to content

Commit

Permalink
Fix up collection selector
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 16, 2024
1 parent 81d3400 commit 83db1af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/SotoSmithy/Selectors/BasicSelectors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public struct SimpleTypeSelector: Selector {
public struct CollectionSelector: Selector {
public init() {}
public func select(using model: Model, shape: Shape) -> Bool {
return shape is CollectionShape
return shape is ListShape
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/SotoSmithyAWS/Traits/AwsCoreTraits.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public struct AwsDataTrait: SingleValueTrait {
public var selector: Selector {
return OrSelector(
SimpleTypeSelector(),
CollectionSelector(),
TypeSelector<ListShape>(),
TypeSelector<StructureShape>(),
TypeSelector<UnionShape>(),
TypeSelector<MemberShape>()
Expand Down

0 comments on commit 83db1af

Please sign in to comment.