File tree Expand file tree Collapse file tree 3 files changed +37
-55
lines changed
Expand file tree Collapse file tree 3 files changed +37
-55
lines changed Original file line number Diff line number Diff line change @@ -144,39 +144,26 @@ public function popularEpisodes(QueryPopularEpisodesCommand $command)
144144 * allOf={
145145 * @OA\Schema(ref="#/components/schemas/pagination"),
146146 * @OA\Schema(
147- *
148- * allOf={
149- * @OA\Schema(
147+ * @OA\Property(
148+ * property="data",
149+ * type="array",
150+ * @OA\Items(
151+ * type="object",
150152 * @OA\Property(
151153 * property="title",
152154 * type="string",
153155 * description="Promo Title"
154156 * ),
155- * ),
156- * @OA\Schema (
157157 * @OA\Property(
158- * property="data",
159- * type="array",
160- *
161- * @OA\Items(
162- * type="object",
163- * @OA\Property(
164- * property="entry",
165- * type="object",
166- * ref="#/components/schemas/anime_meta"
167- * ),
168- * @OA\Property(
169- * property="trailer",
170- * type="array",
171- * @OA\Items(
172- * type="object",
173- * ref="#/components/schemas/trailer",
174- * ),
175- * ),
176- * ),
158+ * property="entry",
159+ * ref="#/components/schemas/anime_meta"
160+ * ),
161+ * @OA\Property(
162+ * property="trailer",
163+ * ref="#/components/schemas/trailer",
177164 * ),
178165 * ),
179- * } ,
166+ * ) ,
180167 * ),
181168 * },
182169 * ),
Original file line number Diff line number Diff line change @@ -326,6 +326,10 @@ class CommonResource extends JsonResource
326326 * property="has_next_page",
327327 * type="boolean"
328328 * ),
329+ * @OA\Property(
330+ * property="current_page",
331+ * type="integer"
332+ * ),
329333 *
330334 * @OA\Property (
331335 * property="items",
Original file line number Diff line number Diff line change 49134913 "$ref" : " #/components/schemas/pagination"
49144914 },
49154915 {
4916- "allOf" : [
4917- {
4918- "properties" : {
4919- "title" : {
4920- "description" : " Promo Title" ,
4921- "type" : " string"
4922- }
4923- },
4924- "type" : " object"
4925- },
4926- {
4927- "properties" : {
4928- "data" : {
4929- "type" : " array" ,
4930- "items" : {
4931- "properties" : {
4932- "entry" : {
4933- "$ref" : " #/components/schemas/anime_meta"
4934- },
4935- "trailer" : {
4936- "type" : " array" ,
4937- "items" : {
4938- "$ref" : " #/components/schemas/trailer"
4939- }
4940- }
4941- },
4942- "type" : " object"
4916+ "type" : " object" ,
4917+ "properties" : {
4918+ "data" : {
4919+ "type" : " array" ,
4920+ "items" : {
4921+ "type" : " object" ,
4922+ "properties" : {
4923+ "title" : {
4924+ "description" : " Promo Title" ,
4925+ "type" : " string"
4926+ },
4927+ "entry" : {
4928+ "$ref" : " #/components/schemas/anime_meta"
4929+ },
4930+ "trailer" : {
4931+ "$ref" : " #/components/schemas/trailer"
49434932 }
49444933 }
4945- },
4946- "type" : " object"
4934+ }
49474935 }
4948- ]
4936+ }
49494937 }
49504938 ]
49514939 },
64176405 "has_next_page" : {
64186406 "type" : " boolean"
64196407 },
6408+ "current_page" : {
6409+ "type" : " integer"
6410+ },
64206411 "items" : {
64216412 "properties" : {
64226413 "count" : {
You can’t perform that action at this time.
0 commit comments