Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] MM should flatten the property in array whose item contains only one property of id #39

Open
ArcturusZhang opened this issue Sep 20, 2019 · 1 comment
Labels
future feature A nice-to-have feature future

Comments

@ArcturusZhang
Copy link

There is an array has the following schema:

- !ruby/object:Api::Type::Array
        name: 'publicIpAddresses'
        description: 'An array of public ip addresses associated with the nat gateway resource.'
        required: false
        azure_sdk_references: ['/publicIpAddresses', '/properties/publicIpAddresses']
        item_type: !ruby/object:Api::Type::NestedObject
          properties:
            - !ruby/object:Api::Azure::Type::ResourceReference
              name: 'id'
              description: 'Resource ID.'
              required: false
              sample_value: /subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group }}/providers/Microsoft.Network/publicIPAddresses/{{ name }}
              resource_type_name: TBD
              azure_sdk_references: ['/publicIpAddresses/id', '/properties/publicIpAddresses/id']

This is an array whose item contains only on property of id. What I need is to transform it into an array of id, instead of an array of object who contains only one property of id.

@ArcturusZhang ArcturusZhang changed the title MM should flatten the property in array whose item contains only one property of id [Feature request] MM should flatten the property in array whose item contains only one property of id Sep 20, 2019
@houkms houkms added the future feature A nice-to-have feature future label Oct 9, 2019
@houkms
Copy link
Collaborator

houkms commented Nov 5, 2019

I assume this shall be resolved in autorest.cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future feature A nice-to-have feature future
Projects
None yet
Development

No branches or pull requests

2 participants