<?php

namespace App\Http\Requests\Api\V1\Product;

use Illuminate\Foundation\Http\FormRequest;

class UpdateOptionSetRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'name' => 'sometimes|string|max:255',
            'type' => 'sometimes|in:scoop,size',
            'is_required' => 'boolean',
            'min_select' => 'integer|min:0',
            'max_select' => 'integer|min:1',
            'is_active' => 'boolean',
        ];
    }
}
