Skip to main content

validate_declared

Function validate_declared 

Source
pub fn validate_declared(model: &Model) -> Result<Report, ValidateError>
Expand description

Validate against the schema the file itself declares.

§Errors

Returns ValidateError when the file declares no schema, or declares one this build has no tables for. A release known by name but published without an EXPRESS schema (IFC4X3_TC1, IFC4X3_ADD1) is ValidateError::UnpublishedSchema, never validated as IFC4X3 ADD2 by assumption; a caller choosing to do so passes those tables to validate. Validating an IFC2X3 file against IFC4 tables would produce confident nonsense, so it is refused rather than approximated. Which releases have tables is the build’s choice: the release features (ifc2x3, ifc4, ifc4x1, ifc4x2, ifc4x3, all on by default) each bundle one.