Am using python 3.4.
I have created an enum
type as shown below:
import enum
class EnumGender(enum.Enum):
blank = ' '
female = 'Female'
male = 'Male'
other = 'Other'
my question is how do i assign it to flask-restplus field as the only examples i can see are:
fields.String(description='The object type', enum=['A', 'B'])