Fix: Nullable dropped on certain properties (#4343)

This commit is contained in:
Timothee Guerin 2021-11-01 13:53:31 -07:00 коммит произвёл GitHub
Родитель c26b83921f
Коммит 74164f01b5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@autorest/core",
"comment": "**Fix** Nullable on certain properties during tree shaking",
"type": "patch"
}
],
"packageName": "@autorest/core",
"email": "tiguerin@microsoft.com"
}

Просмотреть файл

@ -783,6 +783,7 @@ export class OAI3Shaker extends Transformer<AnyObject, AnyObject> {
"x-ms-client-flatten": value["x-ms-client-flatten"], // we violate spec to allow flexibility in terms of flattening
"x-ms-client-name": value["x-ms-client-name"], // we violate spec to allow flexibility in terms of naming too. *sigh*
readOnly: value.readOnly,
nullable: value.nullable,
},
pointer,
};