You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm I think Choice constraint should take priority here.
But may I ask why you are using the Choice constraint in this example? I assume you are using the Symfony serializer and when using the BackedEnumNormalizer it would make the Choice redundant as can be seen in this discussion symfony/symfony#44576 (comment)
The swagger output is being doubled when using
#[Assert\Choice(callback: [MyEnum::class, 'cases'])]
The text was updated successfully, but these errors were encountered: