<?php

namespace App\Http\Requests\Exams;

use App\Http\Requests\ApiFormRequest;

class ExamDraftAdminLegacyRequest extends ApiFormRequest
{
    public function rules(): array
    {
        return [
            'class_section_id' => ['required', 'integer', 'min:1'],
            'school_year' => ['required', 'string'],
            'semester' => ['required', 'string'],
            'exam_type' => ['nullable', 'string', 'max:50'],
            'old_exam_file' => ['required', 'file', 'mimes:doc,docx,pdf', 'max:12288'],
        ];
    }
}
