Skip to content

feat(java): implement URI and path-based pagination#12324

Open
tjb9dc wants to merge 6 commits intomainfrom
tb/java-uri-path-pagination
Open

feat(java): implement URI and path-based pagination#12324
tjb9dc wants to merge 6 commits intomainfrom
tb/java-uri-path-pagination

Conversation

@tjb9dc
Copy link
Collaborator

@tjb9dc tjb9dc commented Feb 13, 2026

Summary

  • Implements visitUri and visitPath methods across all three Pagination.Visitor sites in AbstractHttpResponseParserGenerator
  • Bumps Java generator IR dependency from v63 to v64 to pick up the new UriPagination and PathPagination types
  • URI/path pagination extracts the next page location directly from the response body (unlike cursor which modifies request properties)

Test plan

  • ./gradlew compileJava passes successfully
  • Seed tests with URI/path pagination fixtures once available

🤖 Generated with Claude Code

Adds visitUri and visitPath implementations to the three Pagination.Visitor
sites in AbstractHttpResponseParserGenerator, supporting the new IR v64
UriPagination and PathPagination types. Also bumps IR dependency from v63 to v64.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tjb9dc tjb9dc requested a review from tstanmay13 as a code owner February 13, 2026 04:42
@tjb9dc tjb9dc self-assigned this Feb 13, 2026
@github-actions
Copy link
Contributor

🌱 Seed Test Selector

Select languages to run seed tests for:

  • Python
  • TypeScript
  • Java
  • Go
  • Ruby
  • C#
  • PHP
  • Swift
  • Rust
  • OpenAPI
  • Postman

How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR.

tjb9dc and others added 2 commits February 12, 2026 23:55
Adds visitUri and visitPath implementations to the three Pagination.Visitor
sites in AbstractHttpResponseParserGenerator, supporting the new IR v65
UriPagination and PathPagination types. Also bumps IR dependency from v63 to v64
and updates seed.yml to target IR v65.

Changes:
- Implement URI/path pagination in ClassName, TypeName, and response parsing visitors
- Handle endpoints with no request parameter spec (URI/path pagination is response-driven)
- Add new version entry (3.36.0) in sdk/versions.yml with irVersion 65
- Register Java SDK 3.36.0 in v65-to-v63 migration
- Update seed/java-sdk/seed.yml to irVersion v65
- Update pagination-uri-path seed fixture output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…d fixture

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tjb9dc tjb9dc changed the title feat(java): implement URI and path-based pagination visitors feat(java): implement URI and path-based pagination Feb 13, 2026
@tjb9dc tjb9dc force-pushed the tb/java-uri-path-pagination branch from f8e29eb to 33578e8 Compare February 13, 2026 18:23
…lude pagination files

- Add UriPage.java and PathPage.java template resources for URI/path pagination
- Rewrite visitUriOrPathPagination to generate UriPage.create()/PathPage.create() calls
  instead of inline AtomicReference lambda pattern
- Conditionally include UriPage, PathPage, CustomPager, AsyncCustomPager, and
  BiDirectionalPage only when the IR has endpoints using those pagination types
- Pass exception class names to PaginationCoreGenerator for proper error handling
  in generated pagination utilities

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tjb9dc tjb9dc force-pushed the tb/java-uri-path-pagination branch from 33578e8 to ff9223b Compare February 13, 2026 18:33
Resolve conflicts in versions.yml (bump our entry to 3.37.0),
versions.props and versions.lock (keep irV64 needed for URI/path pagination).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tjb9dc tjb9dc enabled auto-merge (squash) February 13, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant