-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update PlexMediaTypeString to match PlexMediaType #76
base: main
Are you sure you want to change the base?
Conversation
GetLibraryItems fails on plexgo when using `operations.GetLibraryItemsQueryParamTypeTrack.ToPointer(),` due to `error unmarshalling json response body: invalid value for GetLibraryItemsLibraryType: track`
📝 WalkthroughWalkthroughAhem, most esteemed colleagues, I am pleased to report a most refined enhancement to our media type classification schema. The Changes
Poem
Cheerio, and good day to you! adjusts monocle 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@@ -12,3 +15,6 @@ x-speakeasy-enums: | |||
- TV_SHOW | |||
- SEASON | |||
- EPISODE | |||
- AUDIO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- AUDIO | |
- ARTIST |
@angafirith Should this not be ARTIST
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the late response.
I believe AUDIO is correct because that's the value used in src/models/common/PlexMediaType.yaml. I think the primary thing here is that these values need to be in alignment with each other. (i.e. the string value in the response needs to map to the same x-speakeasy-enum value as the int value in the request).
I have to admit that I'm not entirely sure here, since I haven't had the chance to figure out how to regenerate the go module using the updated API spec. I figured out these values by manually editing the source of that module, but there could be some nuance here that I am missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at it again, it should be ARTIST
, since this will be the enum value that corresponds with artist
as a string value. The order here matters, as with the other options. If you change it, I will merge it
GetLibraryItems fails on plexgo when using
operations.GetLibraryItemsQueryParamTypeTrack.ToPointer(),
due toerror unmarshalling json response body: invalid value for GetLibraryItemsLibraryType: track
Summary by CodeRabbit