microsoft/azure-devops-go-api

ContinuationToken type mismatch between GetReleasesResponseValue and GetReleasesArgs

phoenixx opened this issue · 0 comments

In the release client.go file, the type for ContinuationToken differs between the GetReleasesResponseValue (which returns the continuation token as a string) and the GetReleasesArgs which takes the continuation token as an *int.

I can work around this by converting the string before continuing the calls to get more releases, but I'm not clear if this is intended behaviour or if I am making a mistake?

client.go lines 1069-1073:

type GetReleasesResponseValue struct {
	Value []Release
	// The continuation token to be used to get the next page of results.
	ContinuationToken string
}

client.go lines 1021-1045:

type GetReleasesArgs struct {
        // other properties excluded...
	// (optional) Gets the releases after the continuation token provided.
	ContinuationToken *int
}