Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The MountTargets property shouldn't be interface{} in azure-sdk-for-go #8604

Closed
neil-yechenwei opened this issue Mar 5, 2020 · 1 comment
Assignees
Labels
Service Attention This issue is responsible by Azure service team.

Comments

@neil-yechenwei
Copy link

The property type of “MountTargets” is “interface{}” not exact data type not like property “ExportPolicy” in azure-sdk-for-go (https://github.com/Azure/azure-sdk-for-go/blob/ef852a52f96b87fc7c4912888e0f286b6455ef05/services/netapp/mgmt/2019-11-01/netapp/models.go#L1517). So we have to parse the property “MountTargets” with below complex way. As I know, the code in azure-sdk-for-go is auto generated by the azure-rest-api-spec. So I think maybe there is some problem in the azure-rest-api-spec for this property “MountTargets”. So could you make a fix to set the property “MountTargets” as exact data type like ExportPolicy in azure-rest-api-spec (https://github.com/Azure/azure-rest-api-specs/blob/master/specification/netapp/resource-manager/Microsoft.NetApp/stable/2019-11-01/netapp.json)?

image

Current way to parse the property “MountTargets” with azure-sdk-for-go:
image

@neil-yechenwei
Copy link
Author

@leonardbf , may I know when the fix for this issue can be released in azure-sdk-for-go since we're blocked now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants