Skip to content

Commit 32d24f6

Browse files
martinbonninbenjie
andauthored
Be strict about error paths format (#1073)
* Be strict about error paths * Update spec/Section 7 -- Response.md Co-authored-by: Benjie <[email protected]> * format --------- Co-authored-by: Benjie <[email protected]>
1 parent 4ab71e3 commit 32d24f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/Section 7 -- Response.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ must contain an entry with the key `path` that details the path of the response
109109
field which experienced the error. This allows clients to identify whether a
110110
`null` result is intentional or caused by a runtime error.
111111

112-
This field should be a list of path segments starting at the root of the
113-
response and ending with the field associated with the error. Path segments that
114-
represent fields should be strings, and path segments that represent list
115-
indices should be 0-indexed integers. If the error happens in an aliased field,
116-
the path to the error should use the aliased name, since it represents a path in
112+
If present, this field must be a list of path segments starting at the root of
113+
the response and ending with the field associated with the error. Path segments
114+
that represent fields must be strings, and path segments that represent list
115+
indices must be 0-indexed integers. If the error happens in an aliased field,
116+
the path to the error must use the aliased name, since it represents a path in
117117
the response, not in the request.
118118

119119
For example, if fetching one of the friends' names fails in the following

0 commit comments

Comments
 (0)