In an Enum of type int, Swagger is only displaying the values (1,2,3,4...) in the documentation, so it is not possible to know what each case is about.
I would like to be able to add a description for each case
Additional context
Enum:
<?php
namespace App\Enum;
enum TipoAnexoItemPaginaFormEnum: int implements ValidadorEnum {
use ValidadorEnumTrait;
case VIDEO_INTERNO = 1;
case VIDEO_YOUTUBE = 2;
case VIDEO_VIEMO = 3;
case IMAGEM = 4;
case IFRAME = 5;
case MAPA = 6;
}
Version
v4.32.2
Question
In an Enum of type int, Swagger is only displaying the values (1,2,3,4...) in the documentation, so it is not possible to know what each case is about.
I would like to be able to add a description for each case
Additional context
Enum:
Result:
I would like a result like this: