forked from googleapis/google-api-go-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
google-api-go-client: add support for "repeated" params
Fixes googleapis#105 and googleapis#110. Recommended reading order: 1) google-api-go-generator/gen.go 2) google-api-go-generator/gen_test.go 3) internal/params.go 4) google-api-go-generator/testdata/repeated.* 5) google-api-go-generator/testdata/param-rename.* 6) spot-check random APIs and/or other testdata/* The problem with the last solution was that sometimes the generator changes the argument name from the API name, and this was not being handled properly. There is now a new test (param-rename.*) that checks for the proper renaming of argument to API names. Specifically, the only changes made since the last review (apart from the new unit test) were to lines 1577-1585 (arg.goname => arg.apiname) in google-api-go-generator/gen.go. The original implementation (which was reverted) and its review is located here: https://code-review.googlesource.com/#/c/3520/ and the accidentally-submitted version is located here: https://code-review.googlesource.com/#/c/3610/ which was also reverted. Change-Id: I8ccf11cd2ef62430beac842fb6ef237ef7c730ca Reviewed-on: https://code-review.googlesource.com/3732 Reviewed-by: Michael McGreevy <[email protected]>
- Loading branch information
Showing
148 changed files
with
54,476 additions
and
77,638 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.