Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

c1tru55
Copy link
Contributor

@c1tru55 c1tru55 commented Aug 18, 2024

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;

@soyuka soyuka merged commit 0a461d7 into api-platform:3.3 Aug 29, 2024
74 of 77 checks passed
@c1tru55 c1tru55 deleted the fix-allow-collection-like-property-schema-choice-restriction branch September 16, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants