Skip to content

Commit 66a7a3c

Browse files
committed
docs: add max_scale to the hand-written field-level error catalog (#7501)
The group table in content/docs/api/error-catalog.mdx enumerates the closed FieldErrorCode catalog exhaustively (27 members pre-change, one per group row); max_scale joins the bounded-ranges row after max_value, matching the enum's own ordering. The three example lines above the table are illustrative (3 of 27 codes, mirroring the errors.zod.ts doc examples) and stay as-is. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RDTnVvsgA6cUZ4xFVtPZRy
1 parent eaa7058 commit 66a7a3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎content/docs/api/error-catalog.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ snake_case, so the code and the schema property are the same word.
528528
|:---|:---|
529529
| Presence and shape | `required`, `invalid_type`, `invalid_shape`, `unknown_field` |
530530
| Per-type parse | `invalid_boolean`, `invalid_number`, `invalid_date`, `invalid_time`, `invalid_email`, `invalid_url`, `invalid_phone`, `invalid_json`, `invalid_format` |
531-
| Bounded ranges | `min_length`, `max_length`, `min_value`, `max_value`, `min_items`, `max_items` |
531+
| Bounded ranges | `min_length`, `max_length`, `min_value`, `max_value`, `max_scale`, `min_items`, `max_items` |
532532
| Closed sets and references | `invalid_option`, `invalid_value`, `reference_not_found`, `reference_ambiguous` |
533533
| Declarative rules | `rule_violation`, `json_schema_violation`, `invalid_initial_state`, `invalid_transition` |
534534

0 commit comments

Comments
 (0)