Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "documentation",
"description": "Tweak wording of integers with ranges message",
"pull_requests": [
"[#2971](https://github.com/smithy-lang/smithy/pull/2971)"
]
}
12 changes: 6 additions & 6 deletions docs/source-2.0/guides/model-validation-examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ to have clear, actionable error messages.
id: "RawIntegerWithoutRange",
configuration: {
messageTemplate: """
This number shape in member `@{id}` of the operation input `@{var|structure}` \
This number shape targeted by the member `@{id}` of the operation input `@{var|structure}` \
does not have a range constraint on both its minimum or maximum value. \
Add the `@@range` trait to this integer shape and provide both minimum and maximum values. \
Add the `@@range` trait to the targeted integer shape and provide both minimum and maximum values. \
For example, `@@range(min: 1, max: 500)`.
""",
selector: """
Expand All @@ -235,9 +235,9 @@ to have clear, actionable error messages.
id: "RawIntegerWithoutRangeMin",
configuration: {
messageTemplate: """
This number shape in member `@{id}` of the operation input `@{var|structure}` \
This number shape targeted by the member `@{id}` of the operation input `@{var|structure}` \
does not have a maximum range constraint. \
Add a minimum value to the `@@range` trait on this shape. \
Add a minimum value to the `@@range` trait on this shape's target. \
For example, `@@range(>>> min: 1 <<<, max: 500)`.
""",
selector: """
Expand All @@ -251,9 +251,9 @@ to have clear, actionable error messages.
id: "RawIntegerWithoutRangeMax",
configuration: {
messageTemplate: """
This number shape in member `@{id}` of the operation input `@{var|structure}` \
This number shape targeted by the member `@{id}` of the operation input `@{var|structure}` \
does not have a maximum range constraint. \
Add a maximum value to the `@@range` trait on this shape. \
Add a maximum value to the `@@range` trait on this shape's target. \
For example, `@@range(min: 1, >>> max: 500 <<<)`.
""",
selector: """
Expand Down
Loading