зеркало из https://github.com/Azure/ms-rest-js.git
Fix serialization issue when required object is empty (#337)
* Fix serialization issue when required object is empty * Update constants
This commit is contained in:
Родитель
8c54b3905f
Коммит
2d4e6b747d
|
@ -483,6 +483,10 @@ export function getOperationArgumentValueFromParameterPath(serviceClient: Servic
|
|||
serializer.serialize(parameterMapper, value, parameterPathString);
|
||||
}
|
||||
} else {
|
||||
if (parameterMapper.required) {
|
||||
value = {};
|
||||
}
|
||||
|
||||
for (const propertyName in parameterPath) {
|
||||
const propertyMapper: Mapper = (parameterMapper as CompositeMapper).type.modelProperties![propertyName];
|
||||
const propertyPath: ParameterPath = parameterPath[propertyName];
|
||||
|
|
|
@ -8,7 +8,7 @@ export const Constants = {
|
|||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
msRestVersion: "1.8.0",
|
||||
msRestVersion: "1.8.1",
|
||||
|
||||
/**
|
||||
* Specifies HTTP.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"email": "azsdkteam@microsoft.com",
|
||||
"url": "https://github.com/Azure/ms-rest-js"
|
||||
},
|
||||
"version": "1.8.0",
|
||||
"version": "1.8.1",
|
||||
"description": "Isomorphic client Runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest",
|
||||
"tags": [
|
||||
"isomorphic",
|
||||
|
|
Загрузка…
Ссылка в новой задаче