Skip to content

Commit

Permalink
Be strict about error paths format (#1073)
Browse files Browse the repository at this point in the history
* Be strict about error paths

* Update spec/Section 7 -- Response.md

Co-authored-by: Benjie <benjie@jemjie.com>

* format

---------

Co-authored-by: Benjie <benjie@jemjie.com>
  • Loading branch information
martinbonnin and benjie committed Apr 4, 2024
1 parent 4ab71e3 commit 32d24f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/Section 7 -- Response.md
Expand Up @@ -109,11 +109,11 @@ must contain an entry with the key `path` that details the path of the response
field which experienced the error. This allows clients to identify whether a
`null` result is intentional or caused by a runtime error.

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

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

0 comments on commit 32d24f6

Please sign in to comment.