Skip to content

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

test(threads): add property check for started chat ack schema

Steven Enamakel9e8e411d3d56
diff --git a/crates/openhuman-core/src/threads/wire_schema_tests.rs b/crates/openhuman-core/src/threads/wire_schema_tests.rs
index 07ce942e80..7f569f2b74 100644
--- a/crates/openhuman-core/src/threads/wire_schema_tests.rs
+++ b/crates/openhuman-core/src/threads/wire_schema_tests.rs
@@ -125,6 +125,7 @@ fn started_chat_ack_schema_requires_every_serialized_field() {
let schema: serde_json::Value =
serde_json::from_str(&thread_wire_schema_json().expect("schema serializes"))
.expect("schema is JSON");
+ let properties = schema["properties"].as_object().expect("root properties");
let ack = resolve_schema(&schema, &properties["startedChatAck"]);
for field in ["accepted", "client_id", "thread_id", "request_id"] {
assert!(