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

Is there a way to swap input fields on select of enum drop down #331

Closed mnjdev closed 1 year ago

mnjdev commented 1 year ago

I am using swagger with Nest JS application and I have a requirement where I need to use the same endpoint to patch different columns of the same table, with this requirement I provide the enum drop down with the column value the user wants to edit but the input field which should take in the value to be edited needs to change based on the selected value from the drop down. Thanks in advance.

Config / setup: swagger-ui-express - 4.1.6 @nestjs/swagger - 5.0.9

scottie1984 commented 1 year ago

I think you would need to refer to the Swagger UI documentation to see if anything like that exists: https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/