Browse Source

Add default value to OpenAPI specification for UserPolicy.EnableCollectionManagement

This fixes a breaking API change during authentication
Niels van Velzen 1 year ago
parent
commit
a8486a7b3b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      MediaBrowser.Model/Users/UserPolicy.cs

+ 2 - 0
MediaBrowser.Model/Users/UserPolicy.cs

@@ -2,6 +2,7 @@
 #pragma warning disable CS1591, CA1819
 
 using System;
+using System.ComponentModel;
 using System.Xml.Serialization;
 using Jellyfin.Data.Enums;
 using AccessSchedule = Jellyfin.Data.Entities.AccessSchedule;
@@ -79,6 +80,7 @@ namespace MediaBrowser.Model.Users
         /// Gets or sets a value indicating whether this instance can manage collections.
         /// </summary>
         /// <value><c>true</c> if this instance is hidden; otherwise, <c>false</c>.</value>
+        [DefaultValue(false)]
         public bool EnableCollectionManagement { get; set; }
 
         /// <summary>