Ask questionsstorage.ManagementPoliciesClient.CreateOrUpdate Failed with RequestIsNotValidJson

Bug Report

<!-- Thank you for opening a bug report. For faster processing, please include: -->

  • import path of package in question, e.g. .../services/storage/mgmt/2019-04-01/storage
  • SDK version 31.0.0
    • Specify the exact commit if possible; one way to get this is the REVISION column output by dep status "
  • output of go version: go version go1.12.6 linux/amd64

Attempting to create a ManagementPolicyRule results in an error:

Error creating Azure Storage Management Policy : storage.ManagementPoliciesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="RequestIsNotValidJson" Message="The request cannot be interpreted as valid Json: {}."

Repro code here


Answer questions stuartleeks

Bump - the swagger has been updated (see here) - what needs to happen to create a new release of the SDK from the updated swagger?



Related questions

SDK equivalent for CLI "az aks install-connector" hot 1
Authentication example needed hot 1
`go get` latest fails due to UUID usage hot 1
[Recovery Services] Vague error messages when updating a policy hot 1
Cannot unmarshal ServicePrincipalListResult in call to graphrbac client.List hot 1
[Recovery Services] Vague error messages when updating a policy hot 1
go get module no matching versions for query "latest hot 1
Key Management API for Function App hot 1
Application insights frustration hot 1
AAD Domain Service create/update fails with Request_InvalidDataContractVersion hot 1
Github User Rank List