Skip to content

Pin OSF API to v2.20#164

Merged
aaronwolen merged 7 commits intomasterfrom
pin-osf-api-version
Feb 22, 2026
Merged

Pin OSF API to v2.20#164
aaronwolen merged 7 commits intomasterfrom
pin-osf-api-version

Conversation

@aaronwolen
Copy link
Member

Summary

  • Pin all OSF API requests to version 2.20 via the Accept header
  • Update file relationship accessor from node to target (deprecated in v2.8)
  • Fix pagination metadata path for v2.20 response format
  • Re-record all VCR cassettes against test.osf.io

Background

The recent Accept header fix (#163) corrected the header name from Accept-Header
to Accept, but left version pinning disabled (version = NULL) for safety. Without
a pinned version, the OSF API defaults all requests to v2.0, which is what the package
has always been using.

Pinning to the most recent OSF API version will ensure consistent/predictable API behavior and prevent the package
from breaking if OSF makes breaking changes in the future.

@aaronwolen aaronwolen marked this pull request as ready for review February 22, 2026 16:16
@aaronwolen aaronwolen merged commit 6e74ba0 into master Feb 22, 2026
5 checks passed
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