<?php

namespace App\Http\Requests\Scores;

use App\Http\Requests\ApiFormRequest;

class ScoreCommentSaveRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'class_section_id' => ['required', 'integer', 'min:1'],
            'semester' => ['required', 'string', 'max:50'],
            'school_year' => ['required', 'string', 'max:50'],
            'comments' => ['required', 'array'],
            'missing_ok' => ['nullable', 'array'],
        ];
    }
}
