Commit d1b4aef
codegen: simplify pagination detection to match actual API
Only check for "next_token" (response) and "token" (query param) —
the actual field names used by all HeyGen v3 endpoints. Removed
speculative support for "cursor" and "page_token" that don't exist.
Updated test_spec.yaml to use "next_token" (was "token").
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5bc5f42 commit d1b4aef
2 files changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
| 461 | + | |
| 462 | + | |
468 | 463 | | |
469 | 464 | | |
470 | 465 | | |
| |||
482 | 477 | | |
483 | 478 | | |
484 | 479 | | |
485 | | - | |
486 | | - | |
| 480 | + | |
487 | 481 | | |
488 | 482 | | |
489 | 483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments