Added Connect middleware for pre-route validation based on Swagger resource documents