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.43k stars 228 forks source link

Support for preauthorizeApiKey #327

Closed alexmassy closed 1 year ago

alexmassy commented 1 year ago

This PR addresses issue #311.

The implementation needed a setInterval function call because of the unpredictable time that takes for the preauthorizeApiKey function to load schema definition.

Added proper unit testing as well