khellang/Nancy.Swagger — pull request #6 by TimSchlechter (2014-07-15 19:49:23+00:00)
Title: Avoid use of IRouteCacheProvider in SwaggerModule

I removed the SwaggerModule dependency to IRouteCacheProvider. Instead, it gets injected in the DefaultSwaggerMetadataConverter. So instead of providing the SwaggerRouteData to the ISwaggerMetadataConverter, the DefaultSwaggerMetadataConverter retrieves it.

This makes it possible to implement ISwaggerMetadataConverter which can use different ways to provide the ResourceListing and ApiDeclaration.

I also changed the signatures of the methods in ISwaggerMetadataConverter.

If this pull request is merged, may I suggest to rename to ISwaggerDataProvider?