Hi Vivek,

 

For enum values, you can use:

 

type: string

enum:

  - foo

  - baar

 

(this can be any type really)

 

For dynamic keys:

 

type: object

additionalProperties:

  type: string

 

The type here can also be anything you’d like the value to be, but they keys 
are dynamic this way.

 

From: <[email protected]> on behalf of Vivek Kumar 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Tuesday, 4 April 2017 at 0:43
To: Swagger <[email protected]>
Subject: Enum with keys & value

 

Hello Sir,
I want to ask you that Is there any method in swagger I can use to show the 
dropdown with different heading with respective keys. 

 

And please tell me how I can use freeform parameter or dynamic key=> value 
parameter in Post request

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to