Repository navigation
Fix object-shaped album pre-release timestamps (#105) - #106
Merged
Merged
Conversation
3 tasks done
|
Oh whoops, didn't see this before opening #107. I'll close mine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
References #105. Spotify's
preReleaseEndDateTimecan be an object withisoStringand optionalprecision;AlbumandAlbumDetailscurrently declare it asstr | None, so valid responses fail decoding or lose search hits.Evidence
get_album("spotify:album:3LUcDBe7DZDExhHbZEQchk")and the exact deserialization error on 2.1.1."preReleaseEndDateTime": {"isoString": "2026-04-24T04:00:00Z"}(withoutprecision): https://www.nexscope.ai/api-docs/social-spotify-artistpreReleaseEndDateTimewith bothisoStringandprecision: https://anything.notte.cc/marketplace/cc679c81-0358-4d4f-9aac-d7df44fc2b07ReleaseDatedataclass already matches the shape; using it avoids changing the generic decoder.Change
ReleaseDatefor both album models' pre-release timestamps. Re-export the existingalbum_details.ReleaseDateimport for callers already using it.strandNoneaccepted for compatibility with the previous model contract.getAlbumresource-decoding path.Verification
No authenticated/live Spotify GraphQL response was fetched in this environment; the reporter's reproduction and the cited published payload are independent evidence of the wire shape. The CI suite should validate the local code change; the exact reporter album should also be checked in live verification before closing the issue.