<?php

namespace App\Http\Requests\Parents;

use App\Http\Requests\ApiFormRequest;

class ParentStudentUpdateRequest extends ApiFormRequest
{
    public function rules(): array
    {
        return [
            'firstname' => ['required', 'string', 'max:255'],
            'lastname' => ['required', 'string', 'max:255'],
            'dob' => ['required', 'date'],
            'gender' => ['required', 'string', 'max:10'],
            'photo_consent' => ['nullable', 'boolean'],
            'registration_grade' => ['nullable', 'string', 'max:50'],
            'allergies' => ['nullable', 'array'],
            'medical_conditions' => ['nullable', 'array'],
        ];
    }
}
