Description
When passing an Enum class name (e.g., ColorEnum::class) as the enum parameter of Property attribute, the attribute could automatically expands the Enum into its possible values.
So instead of having :
#[OA\Property(
enum: [
ColorEnum::BLUE,
ColorEnum::GREEN,
ColorEnum::RED,
]
)]
public string $color;
We could have :
#[OA\Property(
enum: ColorEnum:class
)]
public string $color;