Skip to content

Commit

Permalink
Add exemple for Product::shopIds
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Jan 14, 2025
1 parent 0866e13 commit d90e278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiPlatform/Resources/Product/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Product
#[LocalizedValue]
public array $descriptions;

#[ApiProperty(openapiContext: ['type' => 'array', 'items' => ['type' => 'integer']])]
#[ApiProperty(openapiContext: ['type' => 'array', 'items' => ['type' => 'integer'], 'example' => [1, 3]])]
public array $shopIds;

public const QUERY_MAPPING = [
Expand Down

0 comments on commit d90e278

Please sign in to comment.