Open cataggar opened 3 years ago
Add support to AutoRust for x-ms-enum. https://github.com/stankovski/AutoRest/blob/master/Documentation/swagger-extensions.md#x-ms-enum
Using the example from #412, this would result in a enum values named Global and Keys, which is much better.
Global
Keys
specification\keyvault\data-plane\Microsoft.KeyVault\stable\7.2\rbac.json
"RoleScope": { "type": "string", "description": "The role scope.", "enum": [ "/", "/keys" ], "x-ms-enum": { "name": "RoleScope", "modelAsString": true, "values": [ { "name": "Global", "value": "/", "description": "Global scope" }, { "name": "Keys", "value": "/keys", "description": "Keys scope" } ] } },
Fyi I'm going to work on this...
This is not fixed yet. Still shows: https://github.com/Azure/azure-sdk-for-rust/blob/e1896167cd7c2a8560adf27999623623cea8dcbc/services/svc/keyvault/src/package_7_4/models.rs#L2901-L2911
Add support to AutoRust for x-ms-enum. https://github.com/stankovski/AutoRest/blob/master/Documentation/swagger-extensions.md#x-ms-enum
Using the example from #412, this would result in a enum values named
Global
andKeys
, which is much better.specification\keyvault\data-plane\Microsoft.KeyVault\stable\7.2\rbac.json