<?php

namespace App\Http\Requests\Semesters;

use App\Http\Requests\ApiFormRequest;

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

    public function rules(): array
    {
        return [
            'school_year' => ['required', 'string', 'regex:/^\\d{4}-\\d{4}$/'],
            'semester' => ['required', 'string', 'in:Fall,Spring,fall,spring'],
        ];
    }
}
