Azure-sdk-for-go: Storage Account CustomDomain has the wrong type

Created on 3 Apr 2019  路  4Comments  路  Source: Azure/azure-sdk-for-go

Bug Report

github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2018-11-01/storage

  • What happened?

The JSON and Go type don't match up for CustomDomains. The Go type is *bool, but the JSON contains a string.

  • What did you expect or want to happen?

Types match.

  • How can we reproduce it?

Create a storage account with a custom domain and use the AccountsClient to list storage accounts.

  • Anything we should know about your environment.

Normal. Go version 1.12.1

customer-reported specs

Most helpful comment

Yep, I don't see useSubDomain anymore.

All 4 comments

Hello! If you have an easy repro could you please provide the JSON response body of the failed request? You can use the built in logging facility to log request/response bodies to get this info. Thanks!

@drosseau according to the RP this should be resolved, now when you call the API the value for useSubDomainName is no longer sent across the wire. Can you confirm it works for you now?

Yep, I don't see useSubDomain anymore.

Closing as this is now resolved, thanks for helping.

Was this page helpful?
0 / 5 - 0 ratings