psycofdj opened a new pull request #19:
URL: https://github.com/apache/cloudstack-go/pull/19


   This PR fixes the response parsing for `GetUploadParamsForVolume` and 
`GetUploadParamsForTemplate` api calls.
   
   In the [cloudstack source](https://github.com/apache/cloudstack), both 
endpoints returns an  
[GetUploadParamsResponse](https://github.com/apache/cloudstack/blob/main/api/src/main/java/org/apache/cloudstack/api/response/GetUploadParamsResponse.java)
 object which is serialized as follow:
   
   ```json
   {
     "getuploadparams": {
       "expires": "string",
       "id": "string",
       "jobid": "string",
       "jobstatus": "int"
       "metadata": "string",
       "postURL": "string",
       "signature": "string"
     }
   }
   ```
   In the current implementation, the generated code expects fields to be at 
top-level thus returns an empty object.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to