Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(threads): emit wire schema as draft 2020-12

Steven Enamakeld118eb910390
diff --git a/crates/openhuman-core/src/threads/wire_schema.rs b/crates/openhuman-core/src/threads/wire_schema.rs
index ecb57a11fe..809c1cca97 100644
--- a/crates/openhuman-core/src/threads/wire_schema.rs
+++ b/crates/openhuman-core/src/threads/wire_schema.rs
@@ -39,7 +39,11 @@ pub struct ThreadWireTypes {
/// Serialize the authoritative core/session record schemas for TypeScript codegen.
pub fn thread_wire_schema_json() -> Result<String, serde_json::Error> {
- serde_json::to_string_pretty(&schemars::schema_for!(ThreadWireTypes))
+ let schema = schemars::generate::SchemaSettings::draft2020_12()
+ .for_serialize()
+ .into_generator()
+ .into_root_schema_for::<ThreadWireTypes>();
+ serde_json::to_string_pretty(&schema)
}
#[cfg(test)]