Closed carlos-adir closed 8 months ago
I'm not sure if this should be a responsability of dataio.py
or the Section
class
If section
has functions like from_json
or from_dict
, it should be responsability of the class to deal if the input is not correct.
Hence, verification if a material is defined should be made my Material
class.
But verification if nodes
and curves
labels are unique can be made by dataio.py
A safe
keyword can be added to skip the verification in these functions.
Previous comment resumes.
For now, some verifications are skiped. I think it's better to improve the package considering the input is good, than implementing verifications.
This issue expands the Issue #7.
jsonschema
handles syntax and value types verification, but some verificationsjsonschema
isn't capable of doingknotvector
for curves are ordered