fix: fix lint error (#1203)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user