@azure/core-client
Advanced tools
Comparing version 1.1.3-alpha.20210610.1 to 1.1.3-alpha.20210611.1
@@ -5,5 +5,10 @@ # Release History | ||
### Key Bugs Fixed | ||
- Fix an issue of lost properties when flattening array in deserialization [issue 15653](https://github.com/azure/azure-sdk-for-js/issues/15653) | ||
## 1.1.2 (2021-05-20) | ||
### Fixed | ||
- Fixed an issue to check for the mandatory parameter in the header and query values. [PR 15278](https://github.com/Azure/azure-sdk-for-js/pull/15278) | ||
@@ -10,0 +15,0 @@ |
@@ -733,3 +733,11 @@ // Copyright (c) Microsoft Corporation. | ||
propertyInstance = responseBody[key]; | ||
instance = serializer.deserialize(propertyMapper, propertyInstance, propertyObjectName, options); | ||
const arrayInstance = serializer.deserialize(propertyMapper, propertyInstance, propertyObjectName, options); | ||
// Copy over any properties that have already been added into the instance, where they do | ||
// not exist on the newly de-serialized array | ||
for (const [k, v] of Object.entries(instance)) { | ||
if (!Object.prototype.hasOwnProperty.call(arrayInstance, k)) { | ||
arrayInstance[k] = v; | ||
} | ||
} | ||
instance = arrayInstance; | ||
} | ||
@@ -736,0 +744,0 @@ else if (propertyInstance !== undefined || propertyMapper.defaultValue !== undefined) { |
{ | ||
"name": "@azure/core-client", | ||
"version": "1.1.3-alpha.20210610.1", | ||
"version": "1.1.3-alpha.20210611.1", | ||
"description": "Core library for interfacing with AutoRest generated code", | ||
@@ -5,0 +5,0 @@ "sdk-type": "client", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
558629
5069