mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-19 15:33:03 +03:00
Fix UpdateMediaPath model binding (#5378)
This commit is contained in:
@@ -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!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user