fix: Resource collection path for List/ListAll/Iter #5

Merged
Virgil merged 1 commit from dev into main 2026-03-22 14:01:40 +00:00
Member

Fixes List operations using the item path instead of collection path.

Fixes List operations using the item path instead of collection path.
Virgil added 1 commit 2026-03-22 14:01:32 +00:00
fix: Resource.List/ListAll/Iter use collection path, not item path
All checks were successful
Security Scan / security (push) Successful in 8s
Test / test (push) Successful in 44s
Security Scan / security (pull_request) Successful in 8s
Test / test (pull_request) Successful in 46s
c7c279fc17
The Resource path like /repos/{owner}/{repo}/issues/{index} is the
item path. List operations need the collection path (without the
trailing /{placeholder}). Fixed by deriving the collection path at
construction time — only strips the last segment if it's a pure
placeholder like /{index}, not mixed segments like /repos.

Co-Authored-By: Virgil <virgil@lethean.io>
Virgil merged commit 1f4c5c607e into main 2026-03-22 14:01:40 +00:00
Sign in to join this conversation.
No description provided.