core
core copied to clipboard
fix(symfony): allow schema restriction for collection like property from choice constraint
Q | A |
---|---|
Branch? | 3.3 |
Tickets | n/a |
License | MIT |
Doc PR | n/a |
Add support for automatic schema restriction for collection-like properties:
/**
* @var string[] $features
*/
#[ApiProperty]
#[Assert\Choice(callback: [Feature::class, 'getCaseValues'], multiple: true)]
private array $features;