Expose validation errors in the ApiException class