% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_layer.R
\name{validate_model}
\alias{validate_model}
\title{Validate a surveyframe model specification}
\usage{
validate_model(model, instrument = NULL, strict = TRUE)
}
\arguments{
\item{model}{An \code{\link[=sf_model]{sf_model()}} object or compatible list.}

\item{instrument}{Optional \code{sframe} object. When supplied, model indicators
must match instrument item IDs.}

\item{strict}{Logical. When \code{TRUE}, invalid models raise an error. When
\code{FALSE}, a list with \code{valid} and \code{problems} is returned.}
}
\value{
The model invisibly when valid and \code{strict = TRUE}, otherwise a
validation result list.
}
\description{
Checks model IDs, construct IDs, indicators, structural path endpoints,
duplicate paths, indirect paths, and engine/type compatibility.
}
