% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-validation.R
\name{validate_data_frame}
\alias{validate_data_frame}
\title{Validate a data frame against a list of field specifications}
\usage{
validate_data_frame(df, fields, exact = FALSE)
}
\arguments{
\item{df}{A \code{data.frame} or \code{tibble} to validate.}

\item{fields}{A \code{list} of field specifications created with \code{field()}.}

\item{exact}{A \code{logical} value. If \code{TRUE}, the column names of \code{df} must
be identical to the names in \code{fields} (same set, same order). Defaults
to \code{FALSE}.}
}
\value{
\code{TRUE} if validation passes, or a \code{character} string describing
the first failure.
}
\description{
Returns \code{TRUE} on success or a \code{character} string describing the first
failure. \code{NULL} and empty data frames always pass.
}
\keyword{internal}
