You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _format/1.1/index.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -943,8 +943,10 @@ client to customize which related resources should be returned.
943
943
If an endpoint does not support the `include` parameter, it **MUST** respond
944
944
with `400 Bad Request` to any requests that include it.
945
945
946
-
If an endpoint supports the `include` parameter and a client supplies it,
947
-
the server **MUST NOT** include unrequested [resource objects] in the `included`
946
+
If an endpoint supports the `include` parameter and a client supplies it:
947
+
948
+
- The server's response **MUST** be a [compound document] with an `included` key — even if that `included` key holds an empty array (because the requested relationships are empty).
949
+
- The server **MUST NOT** include unrequested [resource objects] in the `included`
948
950
section of the [compound document].
949
951
950
952
The value of the `include` parameter **MUST** be a comma-separated (U+002C
0 commit comments