wordnik/swagger-node-express — pull request #24 by jakul (2013-01-02 16:35:47+00:00)
Title: check validators when accessing resources.json

This patch ensures that the validators are checked when called resource.json. Without this patch, anyone can see the top levels apis that your app has (through they can't actually do anything).

After applying this patch Swagger UI displays a '403 forbidden' message if the user hasn't entered a valid API key. This is less confusing than the previous behaviour, which would display the api names in grey.

Below is a screenshot which shows the difference:

![validate_resources_url](https://f.cloud.github.com/assets/862794/38669/6a0229f0-54fa-11e2-8b96-bf95044593d2.png)