[Get Projects Args ] - Wrong type of `ContinuationToken` in SDK, it should be `string` not `int`
Opened this issue · 3 comments
xuzhang3 commented
Wrong type of ContinuationToken
in SDK, it should be string
not int
SDK v7:
https://github.com/microsoft/azure-devops-go-api/blob/dev/azuredevops/v7/core/client.go#L548
Swagger v7:
https://github.com/MicrosoftDocs/vsts-rest-api-specs/blob/master/specification/core/7.1/core.json#L228
nechvatalp commented
Hi @xuzhang3 unfortunately the owners of the projects API changed this type to int recently, the specs are not fully up to date. In the current specs from which I generated the clients it looks like this:
{
"in": "query",
"name": "continuationToken",
"description": "Pointer that shows how many projects already been fetched.",
"required": false,
"type": "integer",
"format": "int32"
},
xuzhang3 commented
@nechvatalp thanks for the update
xuzhang3 commented
@nechvatalp GetProjectsResponseValue.ContinuationToken
should also change to int type
https://github.com/microsoft/azure-devops-go-api/blob/dev/azuredevops/v7/core/client.go#L556