Repository navigation
Commit fcc4368
fix: Validate every paginated request like the original request (#1009)
* fix: Validate every paginated request like the original request
The paginator rebuilt each page request with only the pathname, method,
response key, and data, dropping the request parameters and validation
configuration, so required parameter checks were skipped for every
paginated fetch including the first page. A cursor was also dropped
entirely when the original request had no params or body.
Build each page through a new SeamHttpRequest.withPageCursor, which
copies the entire request configuration and merges the page cursor into
the params or body chosen by the request method. New configuration
fields now travel to page requests automatically instead of being
hand-copied in the paginator.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8xeJm2Hd923k8uo6eoFd2
* Apply suggestion from @razor-x
* docs: Trim the withPageCursor doc
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B8xeJm2Hd923k8uo6eoFd2
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent fb10143 commit fcc4368
48 files changed
Lines changed: 119 additions & 78 deletions
File tree
- codegen/layouts/partials
- src/lib
- routes
- access-codes
- simulate
- unmanaged
- access-grants
- unmanaged
- access-methods
- unmanaged
- acs
- access-groups
- credentials
- encoders
- simulate
- entrances
- systems
- users
- action-attempts
- client-sessions
- connect-webviews
- connected-accounts
- simulate
- customers
- devices
- simulate
- unmanaged
- events
- instant-keys
- locks
- simulate
- noise-sensors
- noise-thresholds
- simulate
- phones
- simulate
- spaces
- thermostats
- daily-programs
- schedules
- simulate
- user-identities
- unmanaged
- webhooks
- workspaces
- test/seam/connect
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments