schema-coerce
Coerce LLM JSON values to a simple field-schema. String→int, "yes"→
true, unwrap {"result": {...}} wrappers, fill missing fields from
defaults.
use ;
use json;
let schema = vec!;
let raw = json!;
let fixed = coerce;
assert_eq!;
Pair with llm-json-repair (parse) and json-pluck (extract). MIT
or Apache-2.0.