Azure / autorest.cli

Autorest plugin to Azure CLI command modules and other tooling
MIT License
8 stars 12 forks source link

Fix properties names' casing problem #87

Closed ArcturusZhang closed 4 years ago

ArcturusZhang commented 4 years ago

This pr is aimed to fix some casing problem in the name of properties. The original toCamalCase(option.NameAnsible) cannot properly handle words with those capitalized abbreviations. For example, the swagger name automaticOSUpgradePolicy will be transformed as automaticOsupgradePolicy. Since the NameGoSDK is the result of proper handled of those abbreviations (as well as removed all illegal characters), I just use this value to replace the original name.