Skip to content

Commit 3526b7b

Browse files
jharleybrandonc
andauthored
Apply doc. suggestions from code review
Co-authored-by: Brandon Croft <[email protected]>
1 parent a31b22b commit 3526b7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

errors.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ type ErrorObject struct {
5050
}
5151

5252
// ErrorSource is an object containing references to the primary source of the error.
53+
// Only one field should be populated depending on the source of the error.
5354
type ErrorSource struct {
54-
// Pointer is a string indicating the value in the request document that caused the error.
55+
// Pointer is a JSON Pointer (RFC6901) indicating the value in the request document that caused the error.
5556
Pointer string `json:"pointer,omitempty"`
5657

5758
// Parameter is a string indicating which query or path parameter caused the error.

0 commit comments

Comments
 (0)