Skip to content

feat: ValidationErrorShape documents validation errors with the shape… - #74

Merged
moutonjeremy merged 1 commit into
mainfrom
feat/validation-error-shape
Nov 21, 2026
Merged

moutonjeremy merged 1 commit into
mainfrom
feat/validation-error-shape

Conversation

@moutonjeremy

Copy link
Copy Markdown
Member

… a custom handler sends

A custom ValidationErrorHandler can answer with any body and status, but the spec kept documenting validation errors as ErrorEnvelope, even with DefaultErrorShape set. Config.ValidationErrorShape replaces ErrorEnvelope for validation errors, in the spec and, without a handler, at runtime: a filled instance is the example, a zero one is filled like DefaultErrorShape. ProblemDetails keeps precedence. The default behaviour is unchanged.

… a custom handler sends

A custom ValidationErrorHandler can answer with any body and status, but the
spec kept documenting validation errors as ErrorEnvelope, even with
DefaultErrorShape set. Config.ValidationErrorShape replaces ErrorEnvelope for
validation errors, in the spec and, without a handler, at runtime: a filled
instance is the example, a zero one is filled like DefaultErrorShape.
ProblemDetails keeps precedence. The default behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@moutonjeremy
moutonjeremy merged commit 9be3014 into main Nov 21, 2026
4 checks passed
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