Use new bearer auth scheme and offset+limit pagination#25
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the API authorization header to use Bearer tokens instead of ApiKey. It also migrates pagination from page-based to offset-based for both test cases and folders listing, updating schemas, tools, and E2E tests accordingly. Additionally, it introduces support and tests for fetching only the total count when the limit is set to 0. There are no review comments to address, and I have no further feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Code ReviewOverviewThis PR makes two related API changes:
The changes are clean, consistent, and well-tested. A few things worth flagging below. Breaking Changes — needs documentationThe PR description is empty, but this PR contains two breaking changes that will silently fail for existing users:
Schema Observations
Output schemas use
Test CoverageThe new tests are solid:
One gap: no test for Minor
Summary
|
Code ReviewOverviewThis PR makes two independent API-contract changes:
Both changes are clean and well-tested. A few things worth discussing below. Breaking change / versioningBoth changes are breaking for existing callers:
The bump to Suggestion: Consider adding a Zod Schema validation quality — positiveThe new validators are a clear improvement: offset: z.number().int().min(0).default(0)
limit: z.number().int().min(0).max(1000).default(20)
|
| Assessment | |
|---|---|
| Auth change | Clean one-liner, correct |
| Offset pagination | Well-implemented, validated, tested |
| Breaking change handling | Needs documentation; limit default regression should be noted |
| Schema validation | Improved with .int(), .min(), .max() |
| Test coverage | Good; new limit=0 and metadata tests are valuable |
| Version bump | Appropriate for pre-1.0; PR body should describe breaking changes |
The core implementation is correct. Main ask before merging: update the PR description (or a CHANGELOG entry) to explicitly list the breaking changes so consumers can upgrade safely.
Code Review: Use new bearer auth scheme and offset+limit paginationOverviewThis PR makes two distinct changes:
Both changes are implemented consistently across schemas, tool handlers, and e2e tests. The version bump to Strengths
Issues & SuggestionsBreaking change: folder - limit: z.number().optional().default(100).describe('Number of items per page'),
+ limit: z.number().int().min(0).max(5000).default(20).describe(...)The previous default for folders was
No negative-offset guard in tests The schema correctly enforces it('rejects negative offset', async () => {
await expect(callTool(..., { offset: -1 })).rejects.toThrow(...)
})...would make the contract explicit and guard against regressions. Auth change has no test coverage The Base branch is a development branch, not This PR targets Summary
The core implementation is solid. The main thing worth addressing before merge is the unannounced default-limit change for folders, which could silently break existing integrations. |
No description provided.