Skip to content

Commit

Permalink
OA\Property attribute excludes property from model's required array
Browse files Browse the repository at this point in the history
  • Loading branch information
v.noskov committed Apr 20, 2024
1 parent 2af8c5d commit 53a61a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Functional/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ class User
/**
* User Location.
*/
#[\OpenApi\Attributes\Property(type: 'string')]
private $location;
private string $location;

/**
* @var int
Expand Down

0 comments on commit 53a61a8

Please sign in to comment.