Fix @OA\JsonContent usage in the docs

This commit is contained in:
Guilhem Niot 2020-07-20 20:12:23 +02:00 committed by GitHub
parent 9de23eb4a5
commit a82a1c1416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,10 +153,8 @@ To document your routes, you can use the SwaggerPHP annotations and the
* response=200,
* description="Returns the rewards of an user",
* @OA\JsonContent(
* @OA\Schema(
* type="array",
* @OA\Items(ref=@Model(type=Reward::class, groups={"full"}))
* )
* type="array",
* @OA\Items(ref=@Model(type=Reward::class, groups={"full"}))
* )
* )
* @OA\Parameter(