Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoSDK client not respecting options and body #42

Closed
adriantam opened this issue Jul 10, 2023 · 1 comment · Fixed by #43 or openfga/sdk-generator#148
Closed

GoSDK client not respecting options and body #42

adriantam opened this issue Jul 10, 2023 · 1 comment · Fixed by #43 or openfga/sdk-generator#148
Assignees
Labels
bug Something isn't working

Comments

@adriantam
Copy link
Member

adriantam commented Jul 10, 2023

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 adriantam added the bug Something isn't working label Jul 10, 2023
@adriantam adriantam self-assigned this Jul 10, 2023
@adriantam adriantam transferred this issue from openfga/cli Jul 10, 2023
@adriantam
Copy link
Member Author

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

@adriantam adriantam changed the title Read changes contain extra set of changes GoSDK client not respecting options and body Jul 10, 2023
adriantam added a commit to openfga/sdk-generator that referenced this issue Jul 10, 2023
Client not taking in details for option and body in list stores/read changes etc.
In addition, read auth model does not check and error when auth model is id string

Close openfga/go-sdk#41
Close openfga/go-sdk#42
adriantam added a commit that referenced this issue Jul 10, 2023
Client not taking in details for option and body in list stores/read changes etc.
In addition, read auth model does not check and error when auth model is id string

Close #41
Close #42
adriantam added a commit to openfga/sdk-generator that referenced this issue Jul 11, 2023
Client not taking in details for option and body in list stores/read changes etc.
In addition, read auth model does not check and error when auth model is id string

Close openfga/go-sdk#41
Close openfga/go-sdk#42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant