Skip to content

refactor(py): remove pagination_request_arg config support - #53

Merged
chyroc merged 2 commits into
mainfrom
refactor/remove-pagination-request-arg-config
Feb 26, 2026
Merged

refactor(py): remove pagination_request_arg config support#53
chyroc merged 2 commits into
mainfrom
refactor/remove-pagination-request-arg-config

Conversation

@chyroc

@chyroc chyroc commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove pagination_request_arg from config/generator.yaml
  • remove PaginationRequestArg from OperationMapping
  • remove mapping override handling in python operation rendering
  • add automatic inference for pagination request payload argument:
    • GET/HEAD/OPTIONS -> params
    • all other methods -> json
  • update/add generator tests for inferred behavior

Validation

  • ./scripts/fmt.sh
  • ./scripts/lint.sh
  • ./scripts/test.sh (coverage: 83.0%)
  • ./scripts/build.sh
  • ./scripts/genpy.sh --output-sdk /tmp/coze-py-4YRQ4j --ci-check
  • git -C /tmp/coze-py-4YRQ4j status -sb (no diff, PySDK 0 diff)

Downstream

@chyroc
chyroc force-pushed the refactor/remove-pagination-request-arg-config branch from 6312887 to 6482de8 Compare February 26, 2026 08:54
@chyroc
chyroc merged commit ff02b4a into main Feb 26, 2026
6 checks passed
chyroc added a commit that referenced this pull request Feb 26, 2026
## Summary
- remove `api.operation_mappings[].stream_wrap_async_yield` from
generator config schema
- remove existing `stream_wrap_async_yield` entries in
`config/generator.yaml`
- switch async stream-wrap yield decision to generator inference
(`stream`/`resume` methods yield; others return `AsyncStream`)
- keep current generated behavior for existing mappings by inference,
without requiring the config switch

## Non-overlap With Existing Open PRs
- This change does not overlap with current open config-removal tracks:
  - `arg_defaults_sync` (#52)
  - `pagination_request_arg` (#53, #54)
  - unwrap inference track (#36)

## Validation
- `./scripts/fmt.sh`
- `./scripts/lint.sh`
- `./scripts/test.sh` (Total coverage: 83.1%)
- `./scripts/build.sh`
- `./scripts/gengo.sh`
- `./scripts/diffgo.sh` (zero diff)
- `./scripts/genpy.sh --output-sdk exist-repo/coze-py --ci-check`

## Notes
- During validation bootstrap, local baseline repos were prepared under
`exist-repo/` per AGENTS instructions.

## Downstream PR
- coze-py PR: coze-dev/coze-py#419
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.

1 participant