<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

/**
 * @OA\Schema(
 *     schema="ReceiveLoginRequest",
 *     required={"email" ,"password"},
 *     @OA\Property(property="email", type="string", example="XX@gmail.com"),
 *     @OA\Property(property="password", type="string", example="XXX"),
 * )
 */
class ReceiveLoginRequest extends ApiRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
        return [
            'email' => 'required|email',
            'password' => 'required',
        ];
    }
}
