fix: incorrect item type for titles in OpenAPI schema

This commit is contained in:
László GÖRÖG 2022-09-07 19:46:31 +02:00
parent f17d2e6c0d
commit 7bc1d9f78c
8 changed files with 57 additions and 23 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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",
* ),
* ),
*
*
*/
}
}

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

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