Skip to content

docs: correct the response validation section - #14

Merged
maxholman[bot] merged 1 commit into
masterfrom
docs/standard-schema-validation
Sep 3, 2026
Merged

docs: correct the response validation section#14
maxholman[bot] merged 1 commit into
masterfrom
docs/standard-schema-validation

Conversation

@maxholman

@maxholman maxholman Bot commented Sep 2, 2026

Copy link
Copy Markdown

If valibot isn't installed at runtime, validation is silently skipped was wrong as of v14.0.0. Nothing checks for valibot any more — the client goes through Standard Schema's ~standard interface, and whether validation runs is decided solely by whether the command carries a static responseSchema.

Replaces that sentence with the trigger that actually exists, and refers to Standard Schema rather than valibot throughout, since any spec-compliant validator works now. valibot stays as the optional peer dependency and the worked example.

Docs only, no code change.

Validation no longer goes through valibot directly, so "if valibot isn't
installed at runtime, validation is silently skipped" was wrong on both
counts: nothing checks for valibot, and skipping is decided solely by
whether the command carries a responseSchema.

Describe the trigger that actually exists, and say Standard Schema rather
than valibot throughout, since any spec-compliant validator works.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@maxholman
maxholman Bot merged commit 2f3c23a into master Sep 3, 2026
4 checks passed
@maxholman
maxholman Bot deleted the docs/standard-schema-validation branch September 3, 2026 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant