Open turbomam opened 1 year ago
@bmeluch and @aclum have found some too and started to discuss. I think this is a nmdc-schema issue, not submission-schema.
Edit: My opinions changed. we need examples for nmdc-schema and submission-schema. And example in submission-schema should exist in nmdc-schema and vice versa to show where validation gets more strict & to confirm that the strict-ness of the submission schema still satisfies schema.
MIxS is notorious for including examples values that don't meet the loosely defined Value syntax, etc. Since the nmdc-schema actually enforces validation, we bear the responsibility for checking the examples.
@brynnz22 found that MIxS'
source_mat_id
example of 'MPI012345' doesn't match our submission-schema. In this case, 'MPI012345' is provided as an example for the global definition ofsource_mat_id
but not as used byDhMultiviewCommonColumnsMixin
. It theDhMultiviewCommonColumnsMixin
usage that really matters for any validation rules, but it is confusing to have these two different examples.I think I wrote sheets_and_friends such that it applies modifications in slot usages only. We can use yq to modify global definitions. But ideally we would only have one way of making the modifications.
Global definition:
As used in class
DhMultiviewCommonColumnsMixin