We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be59411 commit c6535d0Copy full SHA for c6535d0
1 file changed
packages/core/src/utils.ts
@@ -203,12 +203,13 @@ export function withValidator<
203
const response = await handler(payload)
204
205
const validationError = validateResponseBody(schema, response.status, response.body)
206
+
207
if (validationError) {
208
return {
209
status: 500,
210
body: {
211
error: 'Response validation failed',
- details: validationError.issues,
212
+ details: validationError,
213
},
214
}
215
0 commit comments