Skip to content

Commit 28ba686

Browse files
committed
Update Long spec to not allow strings for input
There's a separate suggestion to update the guide lines to not mention being liberal in what is accepted for inputs. See: graphql#40
1 parent e20ed45 commit 28ba686

File tree

1 file changed

+2
-3
lines changed
  • scalars/contributed/jakobmerrild

1 file changed

+2
-3
lines changed

scalars/contributed/jakobmerrild/long.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ These are invalid examples:
4646

4747
# Input coercion
4848

49-
For input both `number` and `string` shall be accepted so long as the `string` is a base-10 representation of a
50-
valid value within the range.
49+
For input `number` values shall be accepted so long as they fall within the range represented by the spec.
5150

5251
These are valid examples:
5352

@@ -56,7 +55,6 @@ These are valid examples:
5655
| `0` | IntValue within range |
5756
| `-9223372036854775808` | This is the lowest value that can be represented in the range |
5857
| `9223372036854775807` | This is the largest value that can be represented in the range |
59-
| `"987654321"` | A StringValue containing a base-10 representation of the value is allowed |
6058

6159
These are invalid examples:
6260

@@ -67,4 +65,5 @@ These are invalid examples:
6765
| `123.0` | FloatValue is not allowed |
6866
| `"FFFFF"` | A StringValue containing a base-16 representation of a valid value is not allowed |
6967
| `"6543.000"` | A StringValue containing a base-10 representation with a fractional part is not allowed. Even if the fractional part is zero |
68+
| `"987654321"` | A StringValue containing a base-10 representation of the value is not allowed |
7069

0 commit comments

Comments
 (0)