Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can validate a scenario definition file using the CLI #359

Open
deepbrook opened this issue Oct 7, 2019 · 0 comments
Open

I can validate a scenario definition file using the CLI #359

deepbrook opened this issue Oct 7, 2019 · 0 comments
Labels
Feature request A request for a new SP feature

Comments

@deepbrook
Copy link

Analysis

Current State

When writing a scenario defninition file, it only raises issues with its syntax during scenario execution.

Problem

Executing a scenario completely requires a keystore file, password, data path, as well as funds.
While this is possible to have, it's also a pain in the ass to pass to the CLI. Additionally, the only other tool at hand is an online yaml validator, which requires the user to copy/paste the scenario definition into an online tool. This, however, does not check for valid input types (str, bool, lists, dicts), but much rather only checks that a yaml parser can read it.

Solution

Supply a new CLI command, scenario_player lint <scenario-file>, which lints the scenario definition file against a yaml schema, in addition to checking for mutually exclusive options, and validity of tasks.


@deepbrook deepbrook added the Feature request A request for a new SP feature label Oct 7, 2019
@deepbrook deepbrook added this to the Product Backlog milestone Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request A request for a new SP feature
Projects
None yet
Development

No branches or pull requests

1 participant