mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #13835] [MERGED] Backport 10.11 API enum changes #13729
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/13835
Author: @nielsvanvelzen
Created: 4/3/2025
Status: ✅ Merged
Merged: 4/3/2025
Merged by: @joshuaboniface
Base:
release-10.10.z← Head:10-10-api-backports📝 Commits (2)
1fff472Explicitly set default value for enums used in API models (#13821)a4ab5e5Explicitly set default value for MediaStream.VideoRangeType enum📊 Changes
5 files changed (+10 additions, -0 deletions)
View changed files
📝
MediaBrowser.Model/Dto/BaseItemDto.cs(+2 -0)📝
MediaBrowser.Model/Dto/BaseItemPerson.cs(+2 -0)📝
MediaBrowser.Model/Entities/MediaStream.cs(+2 -0)📝
MediaBrowser.Model/MediaSegments/MediaSegmentDto.cs(+2 -0)📝
MediaBrowser.Model/Search/SearchHint.cs(+2 -0)📄 Description
Changes
This PR backports #13821 and part of #13277 to use the "Unknown" enum member as default value for all non-nullable properties in the API using an enum that has an Unknown member.
This is specifically needed in a 10.10 backport so a client build with the 10.10.7 API can still read responses from a 10.11 server now with the breaking API changes from #13277.
Issues
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.