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

Some requests take a struct, some take map[string]interface{} #34

Open
markschmid opened this issue Aug 4, 2020 · 0 comments
Open

Some requests take a struct, some take map[string]interface{} #34

markschmid opened this issue Aug 4, 2020 · 0 comments

Comments

@markschmid
Copy link
Contributor

For example see the PatchUser method:

// PatchUser
// Updates, via PATCH, the user with the given Id.
//   string userId The Id of the user to update.
//   UserActionRequest request The request that contains just the new user action information.
func (c *FusionAuthClient) PatchUser(userId string, request map[string]interface{}) (*UserResponse, *Errors, error) {

According to the documentation, the second param is supposed to be a UserActionRequest (which is defined in Domain.go), but the method takes a map[string]interface{}. I can work around it for now, but it seems there's a mix of methods that take specific request structs and others that take generic map[string]interface{}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant