schemagen: cache non-object $defs entries to avoid duplicate types #31
@@ -306,7 +306,7 @@ class Builder:
|
||||
return result
|
||||
|
||||
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 "items" not in node or not isinstance(node["items"], dict):
|
||||
|
||||
Reference in New Issue
Block a user