@typespec/http-client-python 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -92,9 +92,9 @@ def add_overloads_for_body_param(yaml_data: Dict[str, Any]) -> None:
|
|
|
92
92
|
for body_type in body_parameter["type"]["types"]:
|
|
93
93
|
if any(o for o in yaml_data["overloads"] if id(o["bodyParameter"]["type"]) == id(body_type)):
|
|
94
94
|
continue
|
|
95
|
-
yaml_data["overloads"].append(add_overload(yaml_data, body_type))
|
|
96
95
|
if body_type.get("type") == "model" and body_type.get("base") == "json":
|
|
97
96
|
yaml_data["overloads"].append(add_overload(yaml_data, body_type, for_flatten_params=True))
|
|
97
|
+
yaml_data["overloads"].append(add_overload(yaml_data, body_type))
|
|
98
98
|
content_type_param = next(p for p in yaml_data["parameters"] if p["wireName"].lower() == "content-type")
|
|
99
99
|
content_type_param["inOverload"] = False
|
|
100
100
|
content_type_param["inOverridden"] = True
|
|
Binary file
|
|
@@ -92,9 +92,9 @@ def add_overloads_for_body_param(yaml_data: Dict[str, Any]) -> None:
|
|
|
92
92
|
for body_type in body_parameter["type"]["types"]:
|
|
93
93
|
if any(o for o in yaml_data["overloads"] if id(o["bodyParameter"]["type"]) == id(body_type)):
|
|
94
94
|
continue
|
|
95
|
-
yaml_data["overloads"].append(add_overload(yaml_data, body_type))
|
|
96
95
|
if body_type.get("type") == "model" and body_type.get("base") == "json":
|
|
97
96
|
yaml_data["overloads"].append(add_overload(yaml_data, body_type, for_flatten_params=True))
|
|
97
|
+
yaml_data["overloads"].append(add_overload(yaml_data, body_type))
|
|
98
98
|
content_type_param = next(p for p in yaml_data["parameters"] if p["wireName"].lower() == "content-type")
|
|
99
99
|
content_type_param["inOverload"] = False
|
|
100
100
|
content_type_param["inOverridden"] = True
|