(error: z.ZodError)
| 72 | } |
| 73 | |
| 74 | export function adminValidationErrorResponse(error: z.ZodError): NextResponse { |
| 75 | return badRequestResponse( |
| 76 | getValidationErrorMessage(error, 'Invalid request body'), |
| 77 | serializeZodIssues(error) |
| 78 | ) |
| 79 | } |
| 80 | |
| 81 | export function adminInvalidJsonResponse(): NextResponse { |
| 82 | return badRequestResponse('Request body must be valid JSON') |
nothing calls this directly
no test coverage detected