//! Generate JSON Schema for BehaviorConfig
//!
//! This example generates a JSON Schema file for the BehaviorConfig type.
//! The schema can be used for validation and editor IntelliSense.
//!
//! Usage:
//! ```bash
//! cargo run --example generate_schema --quiet > schemas/behavior_composition_v1.json
//! ```
//!
//! Or build first, then run the binary:
//! ```bash
//! cargo build --example generate_schema
//! ./target/debug/examples/generate_schema > schemas/behavior_composition_v1.json
//! ```

use mecha10_behavior_runtime::BehaviorConfig;

fn main() -> anyhow::Result<()> {
    let schema = BehaviorConfig::generate_schema()?;
    println!("{}", schema);
    Ok(())
}
