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
For models that inherit from ProxyResource, such as model CertificateProfile is ProxyResource<CertificateProfileProperties> {, I believe you are correct, since the root model Resource has a property called name.
However, the VirtualMachineScaleSet model does not inherit from ProxyResource. It is defined as model VirtualMachineScaleSet {.
I also reviewed the implementations of the C# and TypeScript generators, and they both ignore path parameters in the schema of the request/response body.
By the way,
My understanding of the following code is that name is only a path parameter, not both a path parameter and a body parameter. Is that correct?
Model xxx {
@doc("The name of the virtualMachineScaleSet")
@key("virtualMachineScaleSetName")
@segment("virtualMachineScaleSets")
@visibility("read")
@path
name: string;
}
Describe the bug
For example, in tsp of AzureFleet.Management, we have name as path parameter. See here for details.
We should exclude the path parameter name from the schema definition virtualMachineScaleSet for request/response body.
Reproduction
An example has been provided above.
Checklist
The text was updated successfully, but these errors were encountered: