i would like to have my swagger open API spefication like this
ph, in_prsn, app, othrs, no_cntct_yt
i tried the following it is not woking as expected
modeToContactToMerchantPhone: type: object additionalProperties: type: string
This is not possible in the current version of OpenAPI, but will be possible in the next version, OpenAPI 3.1, using the propertyNames keyword. Check out this post for details and examples:
How to restrict map keys in OpenAPI?