[PR #13835] [MERGED] Backport 10.11 API enum changes #13729

Closed
opened 2026-02-07 07:18:08 +03:00 by OVERLORD · 0 comments
Owner

📋 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.zHead: 10-10-api-backports


📝 Commits (2)

  • 1fff472 Explicitly set default value for enums used in API models (#13821)
  • a4ab5e5 Explicitly 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.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/13835 **Author:** [@nielsvanvelzen](https://github.com/nielsvanvelzen) **Created:** 4/3/2025 **Status:** ✅ Merged **Merged:** 4/3/2025 **Merged by:** [@joshuaboniface](https://github.com/joshuaboniface) **Base:** `release-10.10.z` ← **Head:** `10-10-api-backports` --- ### 📝 Commits (2) - [`1fff472`](https://github.com/jellyfin/jellyfin/commit/1fff472569d5fe14b5d1a00e7db6abacdc4f36e9) Explicitly set default value for enums used in API models (#13821) - [`a4ab5e5`](https://github.com/jellyfin/jellyfin/commit/a4ab5e5a141891a1cf274791766e2a18fa475342) Explicitly set default value for MediaStream.VideoRangeType enum ### 📊 Changes **5 files changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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** <!-- Tag any issues that this PR solves here. ex. Fixes # --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:18:08 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13729