stormchaser-engine 1.4.2

A robust, distributed workflow engine for event-driven and human-triggered workflows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde_json::json;

fn main() {
    let schema = json!({
        "type": "object",
        "properties": {
            "github_username": { "type": "string" }
        },
        "required": ["github_username"]
    });

    let inputs = json!({});
    let compiled = jsonschema::validator_for(&schema).unwrap();
    if let Err(errors) = compiled.validate(&inputs) {
        println!("{}", errors);
    }
}