Packages

Declaratively design state machines that compile to Elixir based :gen_statem processes with the StatesLanguage JSON specification

Current section

Files

Jump to
states_language priv schemas states_language.json
Raw

priv/schemas/states_language.json

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://cityba.se/schemas/states_language.json",
"title": "States Language",
"description": "States Language JSON files to be compiled to Erlang gen_statem processes",
"type": "object",
"properties": {
"Comment": {"type": "string"},
"StartAt": {"type": "string"},
"States": {
"type": "object",
"patternProperties": {"^[A-Z][a-zA-Z]*$": {"$ref": "states_language_state.json#/definitions/state"}},
"additionalProperties": false
}
},
"additionalProperties": false
}