I have an plumber API which I've been asked to secure by requiring that a specific API_KEY be provided as a header. I have added a filter which returns an error if the API_KEY is missing or is incorrect. However, if I start up the API with swagger enabled a request is passed to this filter, and since no API_KEY was provided as a header it will throw an error and kill swagger.
Is there a way to both have swagger and the API_KEY filter?