Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust sSDK error message when using @range on floating point shapes
Browse files Browse the repository at this point in the history
To point to a better issue
#2007.
david-perez committed May 25, 2023
1 parent 7ccac06 commit 9d56845
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -105,7 +105,11 @@ private sealed class UnsupportedConstraintMessageKind {

is UnsupportedRangeTraitOnShape -> LogMessage(
level,
buildMessageShapeHasUnsupportedConstraintTrait(shape, rangeTrait, constraintTraitsUberIssue),
buildMessageShapeHasUnsupportedConstraintTrait(
shape,
rangeTrait,
trackingIssue = "https://github.com/awslabs/smithy-rs/issues/2007",
),
)

is UnsupportedUniqueItemsTraitOnShape -> LogMessage(
@@ -253,7 +257,7 @@ fun validateUnsupportedConstraints(
unsupportedConstraintOnNonErrorShapeReachableViaAnEventStreamSet + unsupportedConstraintErrorShapeReachableViaAnEventStreamSet

// 3. Range trait used on unsupported shapes.
// TODO(https://github.com/awslabs/smithy-rs/issues/1401)
// TODO(https://github.com/awslabs/smithy-rs/issues/2007)
val unsupportedRangeTraitOnShapeSet = walker
.walkShapes(service)
.asSequence()

0 comments on commit 9d56845

Please sign in to comment.