Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix-2022: Correctly describe array parameter (#2203)
* fix-2022: Correctly describe array parameter * style fix
- Loading branch information
1 parent
b96c263
commit 19d628a
Showing
5 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity\QueryModel; | ||
|
||
use OpenApi\Attributes as OA; | ||
|
||
class ArrayQueryModel | ||
{ | ||
public array $ids; | ||
#[OA\Property(description: 'List of product ids', type: 'array', items: new OA\Items(type: 'integer'))] | ||
private ?array $productIds = null; | ||
|
||
public function getProductIds(): ?array | ||
{ | ||
return $this->productIds; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters