-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Incorrectly sends repeated properties #146
Comments
Thanks for letting me know. I tried to reproduce the issue using the CLI:
However, no matter which of the three authorization scopes I use, it will always respond with
I know from using After that, fixing it should be trivial. |
I'm doing authorization outside of |
It seems that int-oauth2 is the crate I would have wanted to have back in the days when I started this project, and considering it can do non-device oauth, it's what I want for this project as well. To fix your issue, it should be enough to change the separator, wouldn't it ? You could try locally, and if you come to the conclusion that it is that way for all google APIs, I'd be happy to change it or merge your PR. What do you think ? In the meanwhile, I will see if I can ... 'upgrade' ... yup-oauth to use |
This is what I was wondering about. Is there documentation from Google on the way this is currently handled? I would expect all the APIs to accept repeated parameters in the same way, but perhaps that is not the case. |
I'd expect the same, and to be honest, I didn't really try my implementation in that regard. My workflow was to try certain functionality I was interested in, and fix issues on the way. As google provides its discovery API, and is likely to auto-implement its clients/servers to some extend, I would believe that this kind of parameter handling is consistent across all APIs. If not, it's easy to make the code-generator handle exceptional cases per API, once these are discovered. Thinking about it, using a That said, I guess we can go for a different separator. Would you try it locally, and send a PR my way once it worked ? I'd really like your name among the list of contributors to the project. Thanks in advance |
https://github.com/Byron/google-apis-rs/blob/master/src/mako/api/lib/mbuild.mako#L522-L529
In this code, repeated properties are added to the query string as a single
/
-separated string.When this is done for
google_gmail1::UserMessageListCall
, this error is returned:When performing the same API call from the API documentation, it constructs the request like this:
The text was updated successfully, but these errors were encountered: