mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
27 lines
828 B
PHP
27 lines
828 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="preliminary",
|
|
* in="query",
|
|
* required=false,
|
|
* description="Any reviews left during an ongoing anime/manga, those reviews are tagged as preliminary. NOTE: Preliminary reviews are not returned by default so if the entry is airing/publishing you need to add this otherwise you will get an empty list. e.g usage: `?preliminary=true`",
|
|
* @OA\Schema(type="boolean")
|
|
* ),
|
|
*/
|
|
trait HasPreliminaryParameter
|
|
{
|
|
use PreparesData;
|
|
|
|
#[BooleanType, WithCast(ContextualBooleanCast::class)]
|
|
public bool|Optional $preliminary;
|
|
}
|