API: types schema improve typescript performance

This commit is contained in:
Johannes Kirschbauer
2024-09-02 17:40:23 +02:00
parent 226732c627
commit aceae9aa1e
9 changed files with 38 additions and 180 deletions

View File

@@ -92,7 +92,7 @@ def type_to_dict(
required.add(pn)
elif pv.get("oneOf") is not None:
if "null" not in [i["type"] for i in pv.get("oneOf", [])]:
if "null" not in [i.get("type") for i in pv.get("oneOf", [])]:
required.add(pn)
required_fields = {