Skip to content

Validation of decisions listed in Barcodes/Regions in Toml #328

Description

@Adoni5

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.

human_chr_selection.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions