Azure / autorest.az

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

Not generating array property correctly #858

Closed hivyas closed 3 years ago

hivyas commented 3 years ago

We have a property in our swagger defined as such: image image

This is how the body of it should like: image

However, when generating our cli extension the storage-account parameter is missing the identity layer in the body: image So the resulting body looks like this: 'storage_accounts': [ { 'id': '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/storage1', 'user_assigned_identity': '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2' } ]