Azure / Azure/autorest.powershell

[feature request] Add support to distinguish null and {} object

Open
#920 4 comments 0 reactions 0 assignees View on GitHub
feature-request P2
Dominant language
C#
Stars
123
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Reported by https://github.com/Azure/azure-powershell/issues/17410

Autorest.powershell will treat {} as null object. And do not send {} to backend.

Beside, we are suspecting service side may report {} is invalid value if we pass {} for some other parameters (from other RPs). We are unable to predict what will be caused if we distinguish {} with null and send {} to backend. We are investigating whether we need a flag from swagger to let us know this parameter whether distinguish ‘{}’ and null.

```
"volumes": [
{
"name": "emptydir1",
"emptyDir": {}
}
]
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.