mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Store applicability in IfcTester JSON results
This commit is contained in:
@@ -163,6 +163,7 @@ class Json(Reporter):
|
||||
return self.results
|
||||
|
||||
def report_specification(self, specification):
|
||||
applicability = [a.to_string("applicability") for a in specification.applicability]
|
||||
requirements = []
|
||||
for requirement in specification.requirements:
|
||||
requirements.append(
|
||||
@@ -182,6 +183,7 @@ class Json(Reporter):
|
||||
"total": total,
|
||||
"percentage": percentage,
|
||||
"required": specification.minOccurs != 0,
|
||||
"applicability": applicability,
|
||||
"requirements": requirements,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user