Skip to content

fix(python): only copy custom_pagination.py when custom pagination is used#12322

Merged
fern-support merged 1 commit intomainfrom
thomas/fix-custom-pagination-copy
Feb 13, 2026
Merged

fix(python): only copy custom_pagination.py when custom pagination is used#12322
fern-support merged 1 commit intomainfrom
thomas/fix-custom-pagination-copy

Conversation

@tjb9dc
Copy link
Collaborator

@tjb9dc tjb9dc commented Feb 13, 2026

Summary

  • custom_pagination.py was being copied into every generated SDK with any paginated endpoints, even when no endpoints use custom pagination
  • Split the single has_paginated_endpoints flag into has_standard_paginated_endpoints and has_custom_paginated_endpoints
  • pagination.py is now only copied for standard (offset/cursor/nextUri) endpoints; custom_pagination.py only for custom pagination endpoints

Test plan

  • Run pnpm seed test --generator python-sdk --fixture pagination --skip-scripts to verify standard pagination still works
  • Verify custom_pagination.py is not present in seed output for non-custom pagination fixtures

🤖 Generated with Claude Code

… used

Previously, custom_pagination.py was copied into every generated SDK that
had any paginated endpoints. Now pagination.py and custom_pagination.py
are gated independently: pagination.py for standard (offset/cursor/nextUri)
endpoints, custom_pagination.py for custom pagination endpoints only.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@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.

@fern-support fern-support enabled auto-merge (squash) February 13, 2026 03:58
@fern-support fern-support merged commit c629e4d into main Feb 13, 2026
122 checks passed
@fern-support fern-support deleted the thomas/fix-custom-pagination-copy branch February 13, 2026 04:17
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.

2 participants