mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4301] [MERGED] Fix comma delimited array model binder #10010
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4301
Author: @crobibero
Created: 10/10/2020
Status: ✅ Merged
Merged: 10/11/2020
Merged by: @dkanada
Base:
master← Head:fix-array-binder📝 Commits (2)
17b20aaFix comma delimited array model binder6a3a193Fix and clean tests📊 Changes
2 files changed (+17 additions, -26 deletions)
View changed files
📝
Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinder.cs(+0 -5)📝
tests/Jellyfin.Api.Tests/ModelBinders/CommaDelimitedArrayModelBinderTests.cs(+17 -21)📄 Description
Default in aspnetcore is to return an array when no parameters are included.
Note- in both default aspnetcore and with this binder
[Required]doesn't work on array parameters.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.