File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,3 +85,12 @@ energyml-prodml2-2 = "^1.12.0"
8585- xml_to_json : translate an energyml xml file into json.
8686- json_to_xml : translate an energyml json file into an xml file
8787- describe_as_csv : create a csv description of an EPC content
88+ - validate : validate an energyml object or an EPC instance (or a folder containing energyml objects)
89+
90+
91+
92+ ## Validation example :
93+
94+ ``` bash
95+ poetry run validate --input " path/to/your/energyml/object.xml" * > output_logs.json
96+ ```
Original file line number Diff line number Diff line change @@ -614,8 +614,9 @@ def validate_files():
614614 epc = Epc ()
615615 epc .energyml_objects = objects
616616
617- for err in validate_epc (epc ):
618- print (err .toJson ())
617+ err_json = [err .toJson () for err in validate_epc (epc )]
618+
619+ print (json .dumps (err_json , indent = 4 ))
619620
620621
621622# def export_wavefront():
You can’t perform that action at this time.
0 commit comments