Skip to content

Commit 703481f

Browse files
committed
feat: add clarification around GET w/o include
1 parent f749a3c commit 703481f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,12 @@ name, e.g., `properties.datetime` or `datetime`.
8989
2. If only `include` is specified, these fields should be the only fields included.
9090
Any additional fields provided beyond those in the `include` list should be kept
9191
to a minimum, as the caller has explicitly stated they do not need them.
92-
3. If only `exclude` is specified, the specified fields should not be
93-
included, but every other field available for the
94-
Item should be included.
95-
4. If `exclude` is specified and `include` is null or an empty
96-
array, then the `exclude` fields should be excluded from the default set.
92+
3. For POST requests, if only `exclude` is specified, the specified fields
93+
should not be included, but every other field available for the Item should be
94+
included.
95+
4. For POST requests, if `exclude` is specified and `include` is null or an
96+
empty array, then the `exclude` fields should be excluded from the default set.
97+
This also applies to GET requests when only `exclude` fields are specified.
9798
5. For nested fields (e.g., `properties.datetime`), the most specific path
9899
should be honored first, and `include` should be preferred over `exclude`. For
99100
example:

0 commit comments

Comments
 (0)