mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
fix: incorrect item type for titles in OpenAPI schema
This commit is contained in:
parent
f17d2e6c0d
commit
7bc1d9f78c
@ -39,8 +39,9 @@ class AnimeFullResource extends JsonResource
|
||||
* type="array",
|
||||
* description="All titles",
|
||||
* @OA\Items(
|
||||
* type="string"
|
||||
* )
|
||||
* type="object",
|
||||
* ref="#/components/schemas/title",
|
||||
* ),
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="title",
|
||||
|
@ -39,8 +39,9 @@ class AnimeResource extends JsonResource
|
||||
* type="array",
|
||||
* description="All titles",
|
||||
* @OA\Items(
|
||||
* type="string"
|
||||
* )
|
||||
* type="object",
|
||||
* ref="#/components/schemas/title",
|
||||
* ),
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="title",
|
||||
|
@ -11,13 +11,13 @@ class CommonResource extends JsonResource
|
||||
* schema="trailer",
|
||||
* type="object",
|
||||
* description="Youtube Details",
|
||||
*
|
||||
*
|
||||
* allOf={
|
||||
* @OA\Schema(ref="#/components/schemas/trailer_base"),
|
||||
* @OA\Schema(ref="#/components/schemas/trailer_images"),
|
||||
* }
|
||||
* }
|
||||
* ),
|
||||
*
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="trailer_base",
|
||||
* type="object",
|
||||
@ -42,7 +42,7 @@ class CommonResource extends JsonResource
|
||||
* nullable=true
|
||||
* ),
|
||||
* ),
|
||||
*
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="trailer_images",
|
||||
* type="object",
|
||||
@ -684,6 +684,21 @@ class CommonResource extends JsonResource
|
||||
* ),
|
||||
* ),
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="title",
|
||||
* type="object",
|
||||
* @OA\Property(
|
||||
* property="type",
|
||||
* type="string",
|
||||
* description="Title type",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="title",
|
||||
* type="string",
|
||||
* description="Title value",
|
||||
* ),
|
||||
* ),
|
||||
*
|
||||
*
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -35,8 +35,9 @@ class MangaFullResource extends JsonResource
|
||||
* type="array",
|
||||
* description="All Titles",
|
||||
* @OA\Items(
|
||||
* type="string"
|
||||
* )
|
||||
* type="object",
|
||||
* ref="#/components/schemas/title",
|
||||
* ),
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="title",
|
||||
|
@ -35,8 +35,9 @@ class MangaResource extends JsonResource
|
||||
* type="array",
|
||||
* description="All Titles",
|
||||
* @OA\Items(
|
||||
* type="string"
|
||||
* )
|
||||
* type="object",
|
||||
* ref="#/components/schemas/title",
|
||||
* ),
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="title",
|
||||
|
@ -30,8 +30,9 @@ class ProducerFullResource extends JsonResource
|
||||
* type="array",
|
||||
* description="All titles",
|
||||
* @OA\Items(
|
||||
* type="string"
|
||||
* )
|
||||
* type="object",
|
||||
* ref="#/components/schemas/title",
|
||||
* ),
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="images",
|
||||
|
@ -30,8 +30,9 @@ class ProducerResource extends JsonResource
|
||||
* type="array",
|
||||
* description="All titles",
|
||||
* @OA\Items(
|
||||
* type="string"
|
||||
* )
|
||||
* type="object",
|
||||
* ref="#/components/schemas/title",
|
||||
* ),
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="images",
|
||||
|
@ -4882,7 +4882,7 @@
|
||||
"description": "All titles",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
"$ref": "#/components/schemas/title"
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
@ -5185,7 +5185,7 @@
|
||||
"description": "All titles",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
"$ref": "#/components/schemas/title"
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
@ -6508,6 +6508,19 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"title": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"description": "Title type",
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"description": "Title value",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"external_links": {
|
||||
"description": "External links",
|
||||
"properties": {
|
||||
@ -6740,7 +6753,7 @@
|
||||
"description": "All Titles",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
"$ref": "#/components/schemas/title"
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
@ -6945,7 +6958,7 @@
|
||||
"description": "All Titles",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
"$ref": "#/components/schemas/title"
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
@ -7531,7 +7544,7 @@
|
||||
"description": "All titles",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
"$ref": "#/components/schemas/title"
|
||||
}
|
||||
},
|
||||
"images": {
|
||||
@ -7587,7 +7600,7 @@
|
||||
"description": "All titles",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
"$ref": "#/components/schemas/title"
|
||||
}
|
||||
},
|
||||
"images": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user