A Ruby gem that provides a command-line validator for Amazon States Language JSON files.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install statelint
statelint state-machine-spec, state-machinespec...
There are no options. If you see no output, your state machine is fine.
Currently covers most of the grammatical constraints for state-machine definitions. The checking of JsonPath syntax is hand-built and probably imperfect.
The Ruby JSON parser unfortunately does not detect duplicate keys in objects, so neither does statelint.
Bug reports and pull requests are welcome on GitHub