Merge pull request #480 from jikan-me/hotfix/media-type-enums

🐛 Fixed media type enums
This commit is contained in:
pushrbx 2024-01-29 14:07:51 +00:00 committed by GitHub
commit 4a3600ed74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 8 deletions

View File

@ -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'
];
}
}

View File

@ -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'
];
}
}

View File

@ -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": {