Skip to content

feat(sdks): update pagination field naming and Python overlay configuration#634

Merged
leggetter merged 3 commits into
mainfrom
feat/sdk-generation-update
Jan 16, 2026
Merged

feat(sdks): update pagination field naming and Python overlay configuration#634
leggetter merged 3 commits into
mainfrom
feat/sdk-generation-update

Conversation

@leggetter

Copy link
Copy Markdown
Collaborator

Summary

This PR updates SDK pagination field naming to be consistent across languages while avoiding Python built-in conflicts.

Changes

  • Python-only pagination overlay: Created separate Python source in workflow.yaml that includes pagination-fixes-overlay.yaml
  • Pagination field naming:
    • TypeScript v0.6.0 & Go v0.5.0: Use next/prev (OpenAPI-defined names)
    • Python v0.5.0: Uses next_cursor/prev_cursor (avoids Python built-in next() conflict)
  • Python gen.yaml updates:
    • Added requestBodyFieldName: params
    • Removed next from allowedRedefinedBuiltins (now handled via overlay)
  • Pagination overlay updates: Renamed query parameters to next_cursor/prev_cursor for Python
  • Upgrade guide: Added documentation for pagination field naming changes

Breaking Changes

  • TypeScript v0.6.0 & Go v0.5.0: nextCursor/prevCursornext/prev in response objects
  • Python v0.5.0: No change - continues using next_cursor/prev_cursor

Testing

  • ✅ TypeScript SDK regenerated and tested
  • ✅ All SDK tests passing (132 passing, 14 pending)
  • ✅ Upgrade guide updated with migration examples

…ration

- Make pagination fixes overlay Python-only (TypeScript/Go use next/prev, Python uses next_cursor/prev_cursor)
- Update Python gen.yaml: add requestBodyFieldName: params, remove next from allowedRedefinedBuiltins
- Update pagination-fixes-overlay.yaml: rename query parameters to next_cursor/prev_cursor for Python
- Update upgrade guide: document pagination field naming changes for all SDKs
- Update workflow.yaml: create separate Python source with pagination overlay

Breaking changes:
- TypeScript v0.6.0 and Go v0.5.0: nextCursor/prevCursor → next/prev
- Python v0.5.0: continues using next_cursor/prev_cursor
…pdate

# Conflicts:
#	.speakeasy/workflow.lock
Copilot AI review requested due to automatic review settings January 16, 2026 11:44
@vercel

vercel Bot commented Jan 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
outpost-docs Ready Ready Preview, Comment Jan 16, 2026 11:59am
outpost-website Ready Ready Preview, Comment Jan 16, 2026 11:59am

Review with Vercel Agent

@vercel vercel Bot temporarily deployed to Preview – outpost-docs January 16, 2026 11:45 Inactive
@vercel vercel Bot temporarily deployed to Preview – outpost-website January 16, 2026 11:45 Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates SDK pagination field naming to be consistent across languages while avoiding Python built-in conflicts. It introduces a Python-specific source configuration that applies a pagination overlay to rename next/prev to next_cursor/prev_cursor for Python SDK only.

Changes:

  • Created separate "Outpost API (Python)" source in workflow.yaml with pagination-fixes-overlay.yaml
  • Updated pagination-fixes-overlay.yaml to rename query parameters and response properties for Python
  • Updated Python SDK version from 0.6.0 to 0.5.0
  • Added upgrade guide documentation for pagination field naming changes

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
sdks/schemas/pagination-fixes-overlay.yaml Added query parameter renames for /tenants, /tenants/{tenant_id}/events, and /tenants/{tenant_id}/destinations/{destination_id}/events endpoints; updated pagination configuration to use next_cursor
sdks/outpost-python/.speakeasy/gen.yaml Downgraded Python SDK version from 0.6.0 to 0.5.0
docs/pages/guides/upgrade-v0.12.mdx Added comprehensive documentation for pagination field naming changes with examples and migration guidance
.speakeasy/workflow.yaml Created separate "Outpost API (Python)" source with pagination overlay; updated Python target to use new source
.speakeasy/workflow.lock Updated source digests and references to reflect workflow changes
Comments suppressed due to low confidence (2)

sdks/schemas/pagination-fixes-overlay.yaml:90

  • The pagination configuration references $.next in the outputs, but the overlay renames the response property to next_cursor. This should be $.next_cursor to match the renamed field.
          nextCursor: $.next

sdks/schemas/pagination-fixes-overlay.yaml:109

  • The pagination configuration references $.next in the outputs, but the overlay renames the response property to next_cursor. This should be $.next_cursor to match the renamed field.
          nextCursor: $.next

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/pages/guides/upgrade-v0.12.mdx Outdated

Copilot AI commented Jan 16, 2026

Copy link
Copy Markdown

@leggetter I've opened a new pull request, #635, to work on those changes. Once the pull request is ready, I'll request review from you.

@vercel vercel Bot temporarily deployed to Preview – outpost-website January 16, 2026 11:59 Inactive
@vercel vercel Bot temporarily deployed to Preview – outpost-docs January 16, 2026 11:59 Inactive
@leggetter leggetter merged commit 3b46e25 into main Jan 16, 2026
4 checks passed
@leggetter leggetter deleted the feat/sdk-generation-update branch January 16, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants