I have this Gender class which I am using for validation on a field:
class Gender(str, Enum):
male = "m"
female = "f"
I am getting a dropdown for this on my doc pages, but they are displaying m and f as the text node on the generated HTML select field.
<select class=""><option value="">--</option><option value="m">m</option><option value="f">f</option></select>
If I wish to get Male and Female on the HTML text but m and f for their corresponding value, how should I do it? I wish the HTML for swagger to be like this:
<select class=""><option value="">--</option><option value="m">Male</option><option value="f">Female</option></select>
descriptionof the relevant parameter/field instead.