pub fn validate_text(
spec: &JsonText,
data: Option<&JsonText>,
files: Option<&JsonText>,
basepath: Option<&JsonText>,
) -> Result<ValidationResult, ValidateError>Expand description
validate over JSON text. The specification, the files,
the data and the base path are checked for invalid text in that order; each
argument is then decoded and validated. Absent data validates an empty
object.