Skip to content

Commit 5df57e7

Browse files
committed
docs(spec): say why grouping field keeps its superRefine while orderBy uses a regex
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E1GNboWQRhh5vidwh2hxTY
1 parent d37faf8 commit 5df57e7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎packages/spec/src/ui/view.zod.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,10 @@ function checkGroupingFieldName(raw: string): string | undefined {
12891289
* `pattern` instead of adding an `x-dropped-refinements` site (#18670). The
12901290
* empty string is the key's `min(1)` and the compiler's
12911291
* `grouping_order_by_blank`, not this.
1292+
*
1293+
* Why `field` does not do the same: its refusal has shipped as zod issue code
1294+
* `custom`, and a `.regex()` answers `invalid_format`. Moving it is a change
1295+
* a consumer can see, so it is a card of its own, not a tidy-up here.
12921296
*/
12931297
function groupingOrderByPaddedRefusal(input: unknown): string {
12941298
const raw = String(input);

0 commit comments

Comments
 (0)