Open hassec opened 1 month ago
@hassec take a look at the consistency_checker()
function. It looks like it doesn't do much when a string is inserted
https://github.com/gafusion/omas/blob/2c9824eced7d5e6d44d66c96bd397f8c1737266e/omas/omas_core.py#L76
Would you be willing to draft a fix, and open a PR? Thanks.
@orso82 Thanks for the pointer. I'll try to find some time to investigate this, but it will have to wait until I have some more idle time.
Simple reproducer with omas 0.94:
This will not raise any errors. The schema says this should be a
FLT_0D
and I assumed that OMAS would raise an error, similarly to how it does when dimensions or path names are incorrect.Schema:
Does OMAS not assert that the assigned data type matches the schema?