openfga / go-sdk

OpenFGA SDK for Go
https://openfga.dev
Apache License 2.0
59 stars 25 forks source link

GoSDK client not respecting options and body #42

Closed adriantam closed 1 year ago

adriantam commented 1 year ago

Have the following go-code

        body := &client.ClientReadChangesRequest{
            Type: selectedType,
        }
        options := &client.ClientReadChangesOptions{
            ContinuationToken: &continuationToken,
        }

        response, err := fgaClient.ReadChanges(context.Background()).Body(*body).Options(*options).Execute()

Capture from server sides shows that the body and continuation token not passed to the request

adriantam commented 1 year ago

Issue is due to go-sdk client not using options and body properly