Function to_422_json
Source pub fn to_422_json(errors: Vec<FieldError>) -> Value
Expand description
Convert validation errors to 422 JSON response format
§Arguments
errors - Vector of field validation errors
§Returns
JSON value with error details formatted for HTTP 422 response