core icon indicating copy to clipboard operation
core copied to clipboard

fix(symfony): allow schema restriction for collection like property from choice constraint

Open c1tru55 opened this issue 6 months ago • 0 comments

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;

c1tru55 avatar Aug 18 '24 19:08 c1tru55