pub fn role_inconsistencies(
model: &Model,
ports: &[Port],
) -> Result<Vec<RoleInconsistency>, SchemaResolutionError>Expand description
Check every element that owns ports for role/direction disagreement.
Ports are grouped by their owning element, so an element whose ports were never attached is not reported: absent data is not a contradiction.
§Errors
SchemaResolutionError when the model’s FILE_SCHEMA binds no release
this crate is verified for (see crate::schema_of).