Fix UpdateMediaPath model binding (#5378)

This commit is contained in:
Claus Vium
2021-03-05 16:56:21 +01:00
committed by GitHub
parent a0f6bc14a2
commit d0a2d00b29
2 changed files with 28 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
using MediaBrowser.Model.Configuration;
namespace Jellyfin.Api.Models.LibraryStructureDto
{
/// <summary>
/// Update library options dto.
/// </summary>
public class UpdateMediaPathRequestDto
{
/// <summary>
/// Gets or sets the library name.
/// </summary>
[Required]
public string Name { get; set; } = null!;
/// <summary>
/// Gets or sets library folder path information.
/// </summary>
[Required]
public MediaPathInfo PathInfo { get; set; } = null!;
}
}