mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
27 lines
923 B
PHP
27 lines
923 B
PHP
<?php
|
|
|
|
namespace App\Dto\Concerns;
|
|
|
|
use App\Casts\ContextualBooleanCast;
|
|
use OpenApi\Annotations as OA;
|
|
use Spatie\LaravelData\Attributes\Validation\BooleanType;
|
|
use Spatie\LaravelData\Attributes\WithCast;
|
|
use Spatie\LaravelData\Optional;
|
|
|
|
/**
|
|
* @OA\Parameter(
|
|
* name="unapproved",
|
|
* in="query",
|
|
* required=false,
|
|
* description="This is a flag. When supplied it will include entries which are unapproved. Unapproved entries on MyAnimeList are those that are user submitted and have not yet been approved by MAL to show up on other pages. They will have their own specifc pages and are often removed resulting in a 404 error. You do not need to pass a value to it. e.g usage: `?unapproved`",
|
|
* @OA\Schema(type="boolean")
|
|
* ),
|
|
*/
|
|
trait HasUnapprovedParameter
|
|
{
|
|
use PreparesData;
|
|
|
|
#[BooleanType, WithCast(ContextualBooleanCast::class)]
|
|
public bool|Optional $unapproved = false;
|
|
}
|