readfish
readfish copied to clipboard
Validation of decisions listed in `Barcodes`/`Regions` in Toml
Issue
Currently decisions do not undergo any validation in TOMLs. Actions
must be one of stop_receiving
, unblock
or proceed
, but Decisions can be anything.
For example the following Region Decision -> Action will fail
[[Region]]
no_map = "banter"
But this will succeed
[[Region]]
banter = "stop_receiving"
Proposal
Propose we also check the contents of the Region using cattrs
Testing TOML
I've attached a testing toml
that should fail. All these validations should happen before testing the plugins, so we should be able to test without updating the path to the index/caller. Suggest using --no-check-plugins
and --no-describe
during testing.