-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix: fix up the series episode endpoint
fix up the series episode endpoint to match the old default behaviour prior to ea90899 and 36ae037, while also including the new behaviour to let the user include everything, exclude everything, or only include the episodes that match the specified condidition. the current behaviour previous to this fixwas breaking both the v2 web ui and shokofin, while the new behaviour after this commit will not break them but still allow for more filtering. [no ci] [skip ci]
- Loading branch information
Showing
2 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json.Serialization; | ||
|
||
namespace Shoko.Server.API.v3.Models.Common; | ||
|
||
[JsonConverter(typeof(StringEnumConverter), typeof(CamelCaseNamingStrategy))] | ||
public enum IncludeOnlyFilter | ||
{ | ||
/// <summary> | ||
/// Include nothing. | ||
/// </summary> | ||
False = 0, | ||
|
||
/// <summary> | ||
/// Include everything. | ||
/// </summary> | ||
True = 1, | ||
|
||
/// <summary> | ||
/// Include only the elements that fit the specified condition. | ||
/// </summary> | ||
Only = 2, | ||
} |