From 53a61a8820a251c51fcfcf29744a7d0aac741c54 Mon Sep 17 00:00:00 2001 From: "v.noskov" Date: Sat, 20 Apr 2024 19:27:23 +0300 Subject: [PATCH 1/2] OA\Property attribute excludes property from model's required array --- tests/Functional/Entity/User.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Functional/Entity/User.php b/tests/Functional/Entity/User.php index 60ae079d2..0bf9eeba5 100644 --- a/tests/Functional/Entity/User.php +++ b/tests/Functional/Entity/User.php @@ -196,8 +196,7 @@ class User /** * User Location. */ - #[\OpenApi\Attributes\Property(type: 'string')] - private $location; + private string $location; /** * @var int From 7177791047b3385cae1b133d38fbceb3aa14d6ad Mon Sep 17 00:00:00 2001 From: "v.noskov" Date: Sat, 20 Apr 2024 19:38:20 +0300 Subject: [PATCH 2/2] OA\Property attribute excludes property from model's required array --- tests/Functional/Entity/User.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Functional/Entity/User.php b/tests/Functional/Entity/User.php index 0bf9eeba5..88d4c29e7 100644 --- a/tests/Functional/Entity/User.php +++ b/tests/Functional/Entity/User.php @@ -48,8 +48,7 @@ class User /** * User Location. - * - * @OA\Property(type = "string") + * @var string */ private $location;