<?php

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

use Illuminate\Foundation\Http\FormRequest;

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

    public function rules(): array
    {
        return [
            'name' => 'required|string|max:255',
            'price_modifier' => 'nullable|numeric',
            'is_default' => 'boolean',
            'sort_order' => 'integer|min:0',
            'is_active' => 'boolean',
        ];
    }
}
