scottie1984 / swagger-ui-express

Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.4k stars 225 forks source link

Schema properties have to be expanded to see description, datatype, & example data #334

Closed jwhitehead77 closed 1 year ago

jwhitehead77 commented 1 year ago

All Schema properties have to be expanded to see description, datatype, & example data. Not sure this was a great decision or not. Image if you had a schema that had 30 or 40 properties and you had to expand each and everyone of them. Not Ideal!

It used to be like this by default... image

Now it is like this by default... image

Would really like to see it go back the other way or at the least expand them all by default.

scottie1984 commented 1 year ago

This behaviour is from Swagger UI itself so you will need to refer to the Swagger UI configuration to see if there is any options for this: https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/

Swagger UI config can be passed into this module using https://github.com/scottie1984/swagger-ui-express#custom-swagger-options