Skip to content

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

chore: files changed crates/openhuman-core/src/core/all_tests.rs

Steven Enamakel814a10e96671
diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rs
index 02da0deced..d2c2debf23 100644
--- a/crates/openhuman-core/src/core/all_tests.rs
+++ b/crates/openhuman-core/src/core/all_tests.rs
@@ -117,15 +117,7 @@ fn registered_controller_schemas_are_consistent_and_serializable() {
"{method} has no description"
);
- let mut serialized = serde_json::to_value(schema).expect("controller schema serializes");
- if methods.len() == 1 {
- if let Some(required) = schema.inputs.iter().find(|input| input.required) {
- serialized["inputs"]
- .as_array_mut()
- .expect("serialized inputs array")
- .retain(|field| field["name"] != required.name);
- }
- }
+ let serialized = serde_json::to_value(schema).expect("controller schema serializes");
let serialized_inputs = serialized["inputs"]
.as_array()
.unwrap_or_else(|| panic!("{method} inputs are not serialized as an array"));