[PR #4301] [MERGED] Fix comma delimited array model binder #10010

Closed
opened 2026-02-07 06:12:29 +03:00 by OVERLORD · 0 comments
Owner

📋 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: masterHead: fix-array-binder


📝 Commits (2)

  • 17b20aa Fix comma delimited array model binder
  • 6a3a193 Fix 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.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/4301 **Author:** [@crobibero](https://github.com/crobibero) **Created:** 10/10/2020 **Status:** ✅ Merged **Merged:** 10/11/2020 **Merged by:** [@dkanada](https://github.com/dkanada) **Base:** `master` ← **Head:** `fix-array-binder` --- ### 📝 Commits (2) - [`17b20aa`](https://github.com/jellyfin/jellyfin/commit/17b20aa0c03b17cf41494983115127abc6f7ede1) Fix comma delimited array model binder - [`6a3a193`](https://github.com/jellyfin/jellyfin/commit/6a3a193dbbe856a22662f495af04aca729495d1f) Fix and clean tests ### 📊 Changes **2 files changed** (+17 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/ModelBinders/CommaDelimitedArrayModelBinder.cs` (+0 -5) 📝 `tests/Jellyfin.Api.Tests/ModelBinders/CommaDelimitedArrayModelBinderTests.cs` (+17 -21) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:12:29 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10010