mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
Merge pull request #480 from jikan-me/hotfix/media-type-enums
🐛 Fixed media type enums
This commit is contained in:
commit
4a3600ed74
@ -11,12 +11,15 @@ use Spatie\Enum\Laravel\Enum;
|
||||
* @method static self special()
|
||||
* @method static self ona()
|
||||
* @method static self music()
|
||||
* @method static self cm()
|
||||
* @method static self pv()
|
||||
* @method static self tv_special()
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="anime_search_query_type",
|
||||
* description="Available Anime types",
|
||||
* type="string",
|
||||
* enum={"tv","movie","ova","special","ona","music","cm","pv","tv-special"}
|
||||
* enum={"tv","movie","ova","special","ona","music","cm","pv","tv_special"}
|
||||
* )
|
||||
*/
|
||||
final class AnimeTypeEnum extends Enum
|
||||
@ -32,7 +35,7 @@ final class AnimeTypeEnum extends Enum
|
||||
'music' => 'Music',
|
||||
'cm' => 'CM',
|
||||
'pv' => 'PV',
|
||||
'tv-special' => 'TV Special'
|
||||
'tv_special' => 'TV Special'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ use Spatie\Enum\Laravel\Enum;
|
||||
* schema="manga_search_query_type",
|
||||
* description="Available Manga types",
|
||||
* type="string",
|
||||
* enum={"manga","novel", "lightnovel", "oneshot","doujin","manhwa","manhua","one-shot"}
|
||||
* enum={"manga","novel", "lightnovel", "oneshot","doujin","manhwa","manhua"}
|
||||
* )
|
||||
*/
|
||||
final class MangaTypeEnum extends Enum
|
||||
@ -31,8 +31,7 @@ final class MangaTypeEnum extends Enum
|
||||
'oneshot' => 'One-shot',
|
||||
'doujin' => 'Doujinshi',
|
||||
'manhwa' => 'Manhwa',
|
||||
'manhua' => 'Manhua',
|
||||
'one-shot' => 'One-shot'
|
||||
'manhua' => 'Manhua'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -4263,7 +4263,7 @@
|
||||
"music",
|
||||
"cm",
|
||||
"pv",
|
||||
"tv-special"
|
||||
"tv_special"
|
||||
]
|
||||
},
|
||||
"characters_search_query_orderby": {
|
||||
@ -4392,8 +4392,7 @@
|
||||
"oneshot",
|
||||
"doujin",
|
||||
"manhwa",
|
||||
"manhua",
|
||||
"one-shot"
|
||||
"manhua"
|
||||
]
|
||||
},
|
||||
"people_search_query_orderby": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user