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: <swagger-swaggersocket@googlegroups.com> on behalf of Vivek Kumar 
<vivek.ku...@venturepact.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Tuesday, 4 April 2017 at 0:43
To: Swagger <swagger-swaggersocket@googlegroups.com>
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to