Azure / Azure/autorest.cli

Get wrong class name from example

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

Description

```
"swagger": "2.0",
"info": {
"title": "Microsoft Storage Sync",
"description": "Microsoft Storage Sync Service API",
"version": "2019-06-01",
"x-ms-code-generation-settings": {
"name": "StorageSyncManagementClient"
}
```
the info.title should be `StorageSyncManagementClient` then generated tests will be right.
Also the generated testcase name will be
`MgmtMicrosoftStorageSyncTest`, not just `MgmtStorageSyncTest`.
And when create client it will import wrong path form `azure.mgmt.storagesync.MicrosoftStorageSync`.

we can fix it using `x-ms-code-generation-settings` in autorest.cli

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.