Skip to content

Commit 2756e07

Browse files
baozhoutaoclaude
andauthored
docs(api): INVALID_FIELD's searchFields clause covers the two value-shape refusals (#16269)
The searchFields parenthetical in the INVALID_FIELD Cause only described the "real field outside the searchable set" refusal. It did not cover the two shape refusals raised by assertSearchFieldsAreSearchable (an array entry that is not a string, and a value that is neither a comma-separated string nor an array) — both of which throw the same code/status/param, just on a different axis of the value. This is a coverage gap in one clause of the Cause text, not a second meaning for the code (#15882). Claude-Session: https://claude.ai/code/session_01Vbw3RPgdtqesx4azk9SbW8 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6c96144 commit 2756e07

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

content/docs/api/error-catalog.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ reads those as field filters, so one naming no field could only match zero
7575
records and is rejected rather than answered with an empty page — plus every
7676
other read axis that names a field: `select`, `expand` (a real field that holds
7777
no reference gets its own message), `searchFields` (a real field outside the
78-
searchable set gets its own message), `groupBy`, and `aggregations[].field`.
78+
searchable set gets its own message, and so does a value with the wrong shape —
79+
an array entry that is not a string, or a value that is itself neither a
80+
comma-separated string nor an array of field names), `groupBy`, and
81+
`aggregations[].field`.
7982
Off the request path the same code answers `backfillSummaryNulls`'s
8083
`recomputeUndefinedOnEmpty` (`os migrate summary-nulls
8184
--recompute-undefined-on-empty object.field`) when an entry is not a roll-up

0 commit comments

Comments
 (0)