Ask a Question

Show multiple-list selection in swagger UI template examples (petshop)

Show multiple-list selection in swagger UI template examples (petshop)

Hi!

 

Would be great to show the pet shop example with multiple list example for parameter selection. 

 

schema:
type: array
items:
$ref: '#/components/schemas/MyEnumList'

 

components: 

 

MyEnumList:
type: string
enum: [AllowedParameterValue1, AllowedParameterValue2, AllowedParameterValue3]

 

reason: i googled for it but could only find: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#style-values which was not really helpful as example. but thanks to really great support https://swaggerhub.drift.com/Natalie_Borovykh

 

😉

2 Comments
TanyaYatskovska
SmartBear Alumni (Retired)
Status changed to: New Idea
 
timothymaguire
SmartBear Alumni (Retired)
Status changed to: Implemented
 
Announcements
Welcome to the SwaggerHub Feature Requests board!

Here you can review already submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Welcome to the Community
Sign Up Here