use ifc_model::EntityId;
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum TabularIssue {
Arity {
entity: EntityId,
type_name: &'static str,
expected: usize,
found: usize,
},
Missing {
entity: EntityId,
attribute: &'static str,
},
Malformed {
entity: EntityId,
attribute: &'static str,
found: String,
},
EmptyList {
entity: EntityId,
attribute: &'static str,
},
Dangling {
entity: EntityId,
attribute: &'static str,
target: EntityId,
},
WrongReferenceType {
entity: EntityId,
attribute: &'static str,
target: EntityId,
expected: &'static str,
actual: String,
},
RaggedRow {
table: EntityId,
row: EntityId,
index: usize,
expected: usize,
found: usize,
},
TooManyHeadings {
table: EntityId,
found: usize,
},
}