Skip to content

fix - add test to catch this validation error #17

@JoshuaHarris391

Description

@JoshuaHarris391
        "submitter_id": "lipidomics-assay-ausdiab-12-221-990940238_e91aef83bc5a85c37d2c8ddbb289de3ffc863bbb3489c650b3a10f13f1477895",
        "type": "lipidomics_assay",
        "assay_id": "AD12_250#12-221-990940238",
        "assay_description": "Targeted mass spec lipidome",
        "instrument_type": "Agilent QQQ LC-MS",
        "samples": [
            {
                "submitter_id": "sample-ausdiab-0441301_e91aef83bc5a85c37d2c8ddbb289de3ffc863bbb3489c650b3a10f13f1477895"
            }
        ]
    }

Should catch instrument_type error using acdc schema 1.0.0

error should look like "'Agilent QQQ LC-MS' is not one of ['LC-MS', 'MS/MS', 'Multidimensional MS', 'Ion Mobility MS', 'MALDI MS', 'GC-MS', 'High Mass Accuracy MS', None]"

For some reason it misses it. There is mention in the logs that foreign key could not be found, maybe because the samples data type is misaligned with the code. Check to see how foreign key is detected, and see if the foreign key is the wrong data type whether it skips the validation for that data file e.g. lipidomics_assay.json or for that object

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions