microsoftgraph / msgraph-sdk-go

Microsoft Graph SDK for Go
https://docs.microsoft.com/en-us/graph/sdks/sdks-overview
MIT License
238 stars 36 forks source link

extra $ sign on ListSites "search" query param #532

Open galoslevy opened 1 year ago

galoslevy commented 1 year ago

when setting the query params of listSites request using RequestInformation class, the template used for preparing the URL uses "$search" while the API expects "search" without the "$" sign.

To work around it I had to patch the httpRequest manually: "httpRequest.URL.RawQuery = "search=%2A"

However, currently it is not supported using the SDK.

Thanks

rkodev commented 8 months ago

Hi @galoslev

Thanks for using the Go SDK and for reaching out. Looking at the v1 service metadata, this search parameter has been referenced with the dollar sign. I've created a new issue to track and resolve this issue.