Adding a group to an assertion remove enum values in the doc
ecourtial opened this issue · 1 comments
ecourtial commented
API Platform version(s) affected: 3.3.11
Description
I use a basic #[Assert\Choice constraint.
#[Assert\Choice(
choices: self::ASSOCIATE_AS_VALUES,
message: 'Choose a valid association mode.',
)]
The documentation is properly generated with the values:
But as soon as I add a group to this assertion, the authorized choices are no longer displayed in the doc.
#[Assert\Choice(
choices: self::ASSOCIATE_AS_VALUES,
message: 'Choose a valid association mode.',
groups: ['firstSequencePost'],
)]
ecourtial commented