schemagen: cache non-object $defs entries to avoid duplicate types #31

Merged
andrew merged 2 commits from weaselbot/weaseljson:weaselbot/issue-17 into main 2026-06-24 17:02:39 +00:00
Showing only changes of commit e155e0bbf4 - Show all commits
+1 -1
View File
@@ -306,7 +306,7 @@ class Builder:
return result return result
if typ == "object" or (typ is None and "properties" in node): if typ == "object" or (typ is None and "properties" in node):
return self._build_object(node, hint, defname, nullable) return (self._build_object(node, hint, defname, nullable), nullable)
if typ == "array": if typ == "array":
if "items" not in node or not isinstance(node["items"], dict): if "items" not in node or not isinstance(node["items"], dict):