Skip to content

Get wrong class name from example #111

@00Kai0

Description

@00Kai0
  "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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions