Skip to content

Commit aacc754

Browse files
committed
CR feedback
1 parent 6b9936b commit aacc754

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libs/core/kiln_ai/datamodel/json_schema.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ def _normalize(node: Any) -> Any:
207207
):
208208
normalized["additionalProperties"] = False
209209

210-
if strict and normalized.get("type") == "object" and "properties" in normalized:
210+
if (
211+
strict
212+
and normalized.get("type") == "object"
213+
and isinstance(normalized.get("properties"), dict)
214+
):
211215
normalized["required"] = list(normalized["properties"].keys())
212216

213217
return normalized

0 commit comments

Comments
 (0)