Skip to content

v1.17.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 01:15
34e1142

   🐞 Bug Fixes

   ⚠️ Default behavior change

On input validation errors (BAD_REQUEST), each issue in error.data.issues now keeps only message and path, and object path segments become { key }. Before, the raw Standard Schema issues were sent as is, including fields like Zod's code and the input itself in Valibot and ArkType issues. RequestValidationPlugin on the client sends the same shape.

No public API or types change, but code that reads other issue fields from error.data.issues (for example on the client) will no longer find them.

The full issues are still on error.cause.issues on the server. To send another shape, rethrow the error in a client interceptor or middleware, see Validation Errors.

    View changes on GitHub