Azure / Azure/autorest.cli

[MM] duplicated entries in definitions

Open
#58 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

I am generating `api.yaml` file using `autorest.cli` with input file: `azure-rest-api-specs\specification\compute\resource-manager\readme.md`

# Tag in use
`package-2019-07`.

# Cli section added in `readme.md`

``` yaml $(cli)
cli:
cli-name: compute
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.compute
package-name: azure-mgmt-compute
clear-output-folder: false
debug: true
disable-azure-cli: true
```

# Problem encountered

The generated `computevirtualmachine/api.yaml` contains two entries with same name `list_by_subscription`:
```
list_by_subscription: !ruby/object:Api::Azure::SDKOperationDefinition
go_func_name: ListAll
python_func_name: list_all
request:
list_by_subscription: !ruby/object:Api::Azure::SDKOperationDefinition
go_func_name: ListByLocation
python_func_name: list_by_location
request:
'/location': !ruby/object:Api::Azure::SDKTypeDefinition::StringObject
go_field_name: Location
python_field_name: location
```

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.