VUIIS / dax

Distributed Automation for XNAT
MIT License
25 stars 24 forks source link

DAX-specific yaml validator #276

Open baxpr opened 4 years ago

baxpr commented 4 years ago

I make lots of mistakes when I write yaml processors, and the write/test/debug/retest loop goes through more than one person and is slow.

Is it possible to write a validator that will (1) do normal yaml validation to catch tab/formatting errors and also (2) verify that the specified assessors, resources, etc actually exist in a project, but without running anything?

duettwe commented 4 years ago

It looks like we could just use PyYAML to validate? Here's a link to an example: https://stackoverflow.com/questions/1773805/how-can-i-parse-a-yaml-file-in-python

I tested it locally and it seems to work pretty well (it caught the stray tab after a line).

bud42 commented 2 years ago

some progress on this #379