openworldformat 0.5.0

The Open World Format Rust reference: the world document, the session fold (log, branches, state), and the ext-physics and ext-cinematography extensions — serde-only, no engine required.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Print the JSON Schema of `WorldManifest`.
//!
//! ```bash
//! cargo run --example schema --features schema > ../schema/world.schema.json
//! ```
//!
//! `tests/schema_snapshot.rs` fails when the committed file is stale —
//! and LocalGPT's world-types snapshot must agree with it.

fn main() {
    let schema = schemars::schema_for!(openworldformat::WorldManifest);
    println!("{}", serde_json::to_string_pretty(&schema).unwrap());
}