<?php

declare(strict_types=1);

namespace App\Framework\OpenApi\Attributes;

use Attribute;

/**
 * Describes the request body for an API endpoint
 */
#[Attribute(Attribute::TARGET_METHOD)]
final readonly class ApiRequestBody
{
    public function __construct(
        public string $description,
        public bool $required = true,
        public string $contentType = 'application/json',
        public ?string $schemaRef = null,
        public ?array $example = null,
    ) {
    }
}
