@azure/synapse-monitoring 1.0.0-alpha.20230215.1 → 1.0.0-alpha.20230224.1
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.
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -967,11 +967,17 @@ function deserializeCompositeType(serializer, mapper, responseBody, objectName,
|
|
|
967
967
|
let propertyInstance;
|
|
968
968
|
let res = responseBody;
|
|
969
969
|
// traversing the object step by step.
|
|
970
|
+
let steps = 0;
|
|
970
971
|
for (const item of paths) {
|
|
971
972
|
if (!res)
|
|
972
973
|
break;
|
|
974
|
+
steps++;
|
|
973
975
|
res = res[item];
|
|
974
976
|
}
|
|
977
|
+
// only accept null when reaching the last position of object otherwise it would be undefined
|
|
978
|
+
if (res === null && steps < paths.length) {
|
|
979
|
+
res = undefined;
|
|
980
|
+
}
|
|
975
981
|
propertyInstance = res;
|
|
976
982
|
const polymorphicDiscriminator = mapper.type.polymorphicDiscriminator;
|
|
977
983
|
// checking that the model property name (key)(ex: "fishtype") and the
|