Forum Discussion

venkaiah's avatar
venkaiah
New Contributor
5 years ago

how to Define Map<Enum,String> in open API specification swagger

i would like to have my swagger open API spefication like this

 

Map<ModeToContactEnum, String>

 

ModeToContactEnum{

ph, in_prsn, app, othrs, no_cntct_yt

}

 

i tried the following it is not woking as expected

modeToContactToMerchantPhone:
type: object
additionalProperties:
type: string