You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugThis issue requires a change to an existing behavior in the product in order to be resolved.ComputeMgmtThis issue is related to a management-plane library.
import path of package in question, e.g. .../services/compute/mgmt/2018-06-01/compute
/services/compute/mgmt/2021-07-01/compute/virtualmachinescalesets.go#L553
What did you expect or want to happen?
Customer should be able to GET VMSS without specifying expand parameter.
How can we reproduce it?
Anything we should know about your environment.
The text was updated successfully, but these errors were encountered:
ghost
added
the
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
label
Sep 21, 2021
RickWinter
added
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Compute
Mgmt
This issue is related to a management-plane library.
labels
Sep 21, 2021
ghost
removed
the
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
label
Sep 21, 2021
@RickWinter@lirenhe is there any way to get an RCA for this one? How is possible that an optional parameter in the API gets made as required in the SDK? Is there something we need to do differently in swagger?
Hi @fitzgeraldsteele the expand is not required in the SDK, but due to some bad design in our track 1 SDK, any optional string-like parameters are generated using the type of string because it can be empty instead of using nil to represent it is empty.
We know this is not a good design, but changing this would cause massive breaking changes, therefore we will not change that in track 1 SDK (the SDKs under services directory).
If you are interested, please take a look at the track 2 SDK (the SDKs under sdk directory):
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.ComputeMgmtThis issue is related to a management-plane library.
Bug Report
import path of package in question, e.g.
.../services/compute/mgmt/2018-06-01/compute
/services/compute/mgmt/2021-07-01/compute/virtualmachinescalesets.go#L553
SDK version e.g.
master
,latest
,18.1.0
latest
Release v57.0.0 1630045276 (Release v57.0.0 1630045276 #15400)
column output by
dep status "github.com/Azure/azure-sdk-for-go
.output of
go version
What happened?
GET VMSS expand parameter looks like it is required. That is incorrect...it should be an optional parameter. See https://docs.microsoft.com/en-us/rest/api/compute/virtual-machine-scale-sets/get
What did you expect or want to happen?
Customer should be able to GET VMSS without specifying expand parameter.
How can we reproduce it?
Anything we should know about your environment.
The text was updated successfully, but these errors were encountered: