Merge pull request #246 from nerg4l/bugfix/season-value

Fix OpenAPI schema of season enum
This commit is contained in:
Irfan 2022-06-14 06:35:02 +05:00 committed by GitHub
commit c1ef22ca93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View File

@ -154,7 +154,7 @@ class AnimeFullResource extends JsonResource
* @OA\Property( * @OA\Property(
* property="season", * property="season",
* type="string", * type="string",
* enum={"Summer", "Winter", "Spring", "Fall"}, * enum={"summer", "winter", "spring", "fall"},
* description="Season", * description="Season",
* nullable=true * nullable=true
* ), * ),
@ -337,4 +337,4 @@ class AnimeFullResource extends JsonResource
'external' => $this->external_links, 'external' => $this->external_links,
]; ];
} }
} }

View File

@ -154,7 +154,7 @@ class AnimeResource extends JsonResource
* @OA\Property( * @OA\Property(
* property="season", * property="season",
* type="string", * type="string",
* enum={"Summer", "Winter", "Spring", "Fall"}, * enum={"summer", "winter", "spring", "fall"},
* description="Season", * description="Season",
* nullable=true * nullable=true
* ), * ),
@ -272,4 +272,4 @@ class AnimeResource extends JsonResource
'demographics' => $this->demographics, 'demographics' => $this->demographics,
]; ];
} }
} }

View File

@ -4682,10 +4682,10 @@
"description": "Season", "description": "Season",
"type": "string", "type": "string",
"enum": [ "enum": [
"Summer", "summer",
"Winter", "winter",
"Spring", "spring",
"Fall" "fall"
] ]
}, },
"year": { "year": {
@ -4956,10 +4956,10 @@
"description": "Season", "description": "Season",
"type": "string", "type": "string",
"enum": [ "enum": [
"Summer", "summer",
"Winter", "winter",
"Spring", "spring",
"Fall" "fall"
] ]
}, },
"year": { "year": {