Azure / autorest.az

Azure CLI Code Generator
MIT License
22 stars 20 forks source link

Non required single value enum #829

Open xfz11 opened 3 years ago

xfz11 commented 3 years ago

If an argument in REST API is enum type with single value, it would be automatically set to the enum single value as the picture shows below. But the argument is not required and changing a None value to a default enum value will distort customer's intention and cause unexpected result. image