8000 :bug: Fixed media type enums by pushrbx · Pull Request #480 · jikan-me/jikan-rest · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions app/Enums/AnimeTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
* @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
Expand All @@ -32,7 +35,7 @@ protected static function labels(): array
'music' => 'Music',
'cm' => 'CM',
'pv' => 'PV',
'tv-special' => 'TV Special'
'tv_special' => 'TV Special'
];
}
}
5 changes: 2 additions & 3 deletions app/Enums/MangaTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* 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
Expand All @@ -31,8 +31,7 @@ protected static function labels(): array
'oneshot' => 'One-shot',
'doujin' => 'Doujinshi',
'manhwa' => 'Manhwa',
'manhua' => 'Manhua',
'one-shot' => 'One-shot'
'manhua' => 'Manhua'
];
}
}
5 changes: 2 additions & 3 deletions storage/api-docs/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4261,7 +4261,7 @@
"music",
"cm",
"pv",
"tv-special"
"tv_special"
]
},
"characters_search_query_orderby": {
Expand Down Expand Up @@ -4390,8 +4390,7 @@
"oneshot",
"doujin",
"manhwa",
"manhua",
"one-shot"
"manhua"
]
},
"people_search_query_orderby": {
Expand Down
0