lint

Validates a scenario file.

Usage:

mg lint path/to/scenario.yaml

Parses and validates the file at the given path as a scenario. The path may be absolute or relative to the current directory.

The file must be a scenario definition written in JSON or YAML format.

If the file is valid, it will be printed in YAML format (in the same style as mg show). If it is invalid, a validation error message will be printed, and the command will exit with a nonzero code.

See also

  • To print an existing scenario in YAML format: mg show