@autorest/python 6.13.17 → 6.13.19
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.
|
@@ -1447,7 +1447,7 @@ class Deserializer(object):
|
|
|
1447
1447
|
elif isinstance(response, type) and issubclass(response, Enum):
|
|
1448
1448
|
return self.deserialize_enum(data, response)
|
|
1449
1449
|
|
|
1450
|
-
if data is None:
|
|
1450
|
+
if data is None or data is CoreNull:
|
|
1451
1451
|
return data
|
|
1452
1452
|
try:
|
|
1453
1453
|
attributes = response._attribute_map # type: ignore
|
|
@@ -700,7 +700,7 @@ class M4Reformatter(YamlUpdatePluginAutorest): # pylint: disable=too-many-publi
|
|
|
700
700
|
# this means i'm a property that is part of a flattened model
|
|
701
701
|
target_property_name = yaml_data["targetProperty"]["language"]["default"]["name"]
|
|
702
702
|
param = self.update_parameter(yaml_data)
|
|
703
|
-
body_parameter.setdefault("propertyToParameterName", {})[target_property_name] = param["clientName"]
|
|
703
|
+
body_parameter.setdefault("propertyToParameterName", {})[target_property_name.lower()] = param["clientName"]
|
|
704
704
|
param["inFlattenedBody"] = True
|
|
705
705
|
return param
|
|
706
706
|
|
|
@@ -829,7 +829,7 @@ class M4Reformatter(YamlUpdatePluginAutorest): # pylint: disable=too-many-publi
|
|
|
829
829
|
prop
|
|
830
830
|
for prop in grouper["type"]["properties"]
|
|
831
831
|
if p["clientName"].lstrip("_") in prop["groupedParameterNames"] # TODO: patching m4
|
|
832
|
-
)["clientName"]: p["clientName"]
|
|
832
|
+
)["clientName"].lower(): p["clientName"]
|
|
833
833
|
for p in all_params
|
|
834
834
|
if p.get("groupedBy") == grouper_name
|
|
835
835
|
}
|
|
@@ -324,9 +324,9 @@ class PreProcessPlugin(YamlUpdatePlugin): # pylint: disable=abstract-method
|
|
|
324
324
|
if yaml_data.get("propertyToParameterName"):
|
|
325
325
|
# need to create a new one with padded keys and values
|
|
326
326
|
yaml_data["propertyToParameterName"] = {
|
|
327
|
-
self.pad_reserved_words(prop, PadType.PROPERTY)
|
|
328
|
-
|
|
329
|
-
.lower()
|
|
327
|
+
self.pad_reserved_words(prop, PadType.PROPERTY): self.pad_reserved_words(
|
|
328
|
+
param_name, PadType.PARAMETER
|
|
329
|
+
).lower()
|
|
330
330
|
for prop, param_name in yaml_data["propertyToParameterName"].items()
|
|
331
331
|
}
|
|
332
332
|
wire_name_lower = (yaml_data.get("wireName") or "").lower()
|