From 1181c31ded0631fd724a93226f8e905bf67c7cb7 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Thu, 9 Feb 2023 12:52:12 -0300 Subject: [PATCH] fix: add nullable to git and linkedin --- app/Http/Controllers/Users/UsersController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.php index 7c87f2a..c660945 100644 --- a/app/Http/Controllers/Users/UsersController.php +++ b/app/Http/Controllers/Users/UsersController.php @@ -16,7 +16,6 @@ use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; -use Knuckles\Scribe\Extracting\Strategies\Responses\UseResponseFileTag; class UsersController extends Controller { @@ -73,9 +72,9 @@ public function putUser(Request $request, string $discordId, UpdateUser $action) 'email' => 'email', 'name' => 'string', 'nickname' => 'string', - 'git' => ['string', 'starts_with:github.com,https://github.com'], + 'git' => ['nullable', 'string', 'starts_with:github.com,https://github.com'], 'about' => 'string', - 'linkedin' => ['string', 'starts_with:linkedin.com,https://linkedin.com'], + 'linkedin' => ['nullable', 'string', 'starts_with:linkedin.com,https://linkedin.com'], 'is_donator' => 'bool', 'uf' => 'size:2', 'birthday' => 'date_format:Y-m-d',