瀏覽代碼

Add default value to OpenAPI specification for UserPolicy.EnableCollectionManagement

This fixes a breaking API change during authentication
Niels van Velzen 1 年之前
父節點
當前提交
a8486a7b3b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      MediaBrowser.Model/Users/UserPolicy.cs

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

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