We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b9936b commit aacc754Copy full SHA for aacc754
libs/core/kiln_ai/datamodel/json_schema.py
@@ -207,7 +207,11 @@ def _normalize(node: Any) -> Any:
207
):
208
normalized["additionalProperties"] = False
209
210
- if strict and normalized.get("type") == "object" and "properties" in normalized:
+ if (
211
+ strict
212
+ and normalized.get("type") == "object"
213
+ and isinstance(normalized.get("properties"), dict)
214
+ ):
215
normalized["required"] = list(normalized["properties"].keys())
216
217
return normalized
0 commit comments