Skip to content

Commit 755147c

Browse files
committed
Tweak wording of integers with ranges message
1 parent 9fa0f35 commit 755147c

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "documentation",
3+
"description": "Tweak wording of integers with ranges message",
4+
"pull_requests": [
5+
"[#2971](https://github.com/smithy-lang/smithy/pull/2971)"
6+
]
7+
}

docs/source-2.0/guides/model-validation-examples.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ to have clear, actionable error messages.
219219
id: "RawIntegerWithoutRange",
220220
configuration: {
221221
messageTemplate: """
222-
This number shape in member `@{id}` of the operation input `@{var|structure}` \
222+
This number shape targeted by the member `@{id}` of the operation input `@{var|structure}` \
223223
does not have a range constraint on both its minimum or maximum value. \
224-
Add the `@@range` trait to this integer shape and provide both minimum and maximum values. \
224+
Add the `@@range` trait to the targeted integer shape and provide both minimum and maximum values. \
225225
For example, `@@range(min: 1, max: 500)`.
226226
""",
227227
selector: """
@@ -235,9 +235,9 @@ to have clear, actionable error messages.
235235
id: "RawIntegerWithoutRangeMin",
236236
configuration: {
237237
messageTemplate: """
238-
This number shape in member `@{id}` of the operation input `@{var|structure}` \
238+
This number shape targeted by the member `@{id}` of the operation input `@{var|structure}` \
239239
does not have a maximum range constraint. \
240-
Add a minimum value to the `@@range` trait on this shape. \
240+
Add a minimum value to the `@@range` trait on this shape's target. \
241241
For example, `@@range(>>> min: 1 <<<, max: 500)`.
242242
""",
243243
selector: """
@@ -251,9 +251,9 @@ to have clear, actionable error messages.
251251
id: "RawIntegerWithoutRangeMax",
252252
configuration: {
253253
messageTemplate: """
254-
This number shape in member `@{id}` of the operation input `@{var|structure}` \
254+
This number shape targeted by the member `@{id}` of the operation input `@{var|structure}` \
255255
does not have a maximum range constraint. \
256-
Add a maximum value to the `@@range` trait on this shape. \
256+
Add a maximum value to the `@@range` trait on this shape's target. \
257257
For example, `@@range(min: 1, >>> max: 500 <<<)`.
258258
""",
259259
selector: """

0 commit comments

Comments
 (0)