% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-validation.R
\name{validate_object}
\alias{validate_object}
\title{Validate the data frame slots of an S4 object}
\usage{
validate_object(object, validators)
}
\arguments{
\item{object}{An S4 object whose slots are to be validated.}

\item{validators}{A named \code{list} of functions, where each name matches a
slot of \code{object} and each function accepts a \code{data.frame}/\code{tibble} and returns
\code{TRUE} or a character error string (as produced by \code{validate_data_frame()}).}
}
\value{
\code{TRUE} if all validators pass, or a \code{character} string describing
the first failure in the form \code{"@slot_name: <message>"}.
}
\description{
Iterates over a named list of validator functions, applying each to the
corresponding slot of \code{object}.
}
\keyword{internal}
