Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
112 stars 78 forks source link

Simplify only one property class conflict with polymorphism #1144

Closed wyunchi-ms closed 1 year ago

wyunchi-ms commented 1 year ago

Autorest.PowerShell will simplify the output to the child class if the output type only have one property. But this will conflict when the output is a base class of polymorphism.

Such as: SAPSizingRecommendationResult. The output type will be DeploymentType

dolauli commented 1 year ago

The issue is duplicated with https://github.com/Azure/autorest.powershell/issues/952.