greentic-flow-dev 1.1.27665160846

Generic YGTC flow schema/loader/IR for self-describing component nodes.
Documentation
use greentic_flow::component_catalog::normalize_manifest_value;
use serde_json::json;

#[test]
fn normalizes_operations_strings() {
    let mut value = json!({
        "id": "ai.greentic.echo",
        "operations": ["run", { "name": "handle" }],
        "config_schema": { "required": ["message"] }
    });

    normalize_manifest_value(&mut value);
    let ops = value
        .get("operations")
        .and_then(|v| v.as_array())
        .expect("operations array");
    assert_eq!(ops[0], json!({"name": "run"}));
    assert_eq!(ops[1], json!({"name": "handle"}));
}