fix: fix lint error (#1203)

This commit is contained in:
Wendy Tang
2025-02-12 08:33:53 -08:00
committed by GitHub
parent 80b694d6c6
commit 724e5ac9a9
+1 -4
View File
@@ -288,10 +288,7 @@ fn ensure_valid_json_schema(schema: &mut Value) {
if let Some(properties_obj) = properties.as_object_mut() {
for (_key, prop) in properties_obj.iter_mut() {
if prop.is_object()
&& prop
.get("type")
.and_then(|t| t.as_str())
.map_or(false, |t| t == "object")
&& prop.get("type").and_then(|t| t.as_str()) == Some("object")
{
ensure_valid_json_schema(prop);
}