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.41k stars 225 forks source link

Empty required field doesn't prevent request #275

Closed michaelsitte closed 2 years ago

michaelsitte commented 2 years ago

Even if a field is configured as required and also showing up as required in the UI, leaving it empty doesn't prevent the request to be fired. The request seems to run endless and the browser console returns the following: image

scottie1984 commented 2 years ago

Issue would be best raised directly with swagger-ui. Seems like a known issue https://github.com/swagger-api/swagger-ui/issues/5181

michaelsitte commented 2 years ago

Sorry for not replying earlier. Thanks for the info.