mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
Explicitly set default value for enums used in API models (#13821)
Enums in response model with no nullability or default value will make the API very fragile as each extension to the enum will break the API for some clients, but a lot of enums actually do have an unknown value which should be used as a default. This set all model properties that are non-nullable using an enum that has an Unknown member in 10.10, except MediaStream.VideoRangeType which is refactored in #13277
This commit is contained in:
@@ -157,6 +157,7 @@ namespace MediaBrowser.Model.Entities
|
||||
/// Gets the video range.
|
||||
/// </summary>
|
||||
/// <value>The video range.</value>
|
||||
[DefaultValue(VideoRange.Unknown)]
|
||||
public VideoRange VideoRange
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user