mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
Merge pull request #246 from nerg4l/bugfix/season-value
Fix OpenAPI schema of season enum
This commit is contained in:
commit
c1ef22ca93
@ -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,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user