Azure / Azure/autorest.cli

[MM] NestedObject flatten

Open
#47 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8
Forks
18
PR merge metrics
No merged PRs in 30d

Description

If a NestedObject only contains one field, the reviewers from terraform would require us to flatten the structure. For example, on behalf of cli, we have an `api.yml` saying
``` yaml
- !ruby/object:Api::Type::NestedObject
name: 'identity'
description: ''
required: false
azure_sdk_references: ['/identity']
properties:
- !ruby/object:Api::Type::Enum
name: 'type'
description: 'The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported.'
required: false
azure_sdk_references: ['/identity/type']
values:
- :SystemAssigned
default_value: :SystemAssigned
```
This should be replaced by
``` yaml
- !ruby/object:Api::Type::Enum
name: 'identityType'
description: 'The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported.'
required: false
azure_sdk_references: ['/identity/type']
values:
- :SystemAssigned
default_value: :SystemAssigned
```
This issue was initially filed to MM [here](https://github.com/VSChina/magic-modules/issues/37)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.