metosin/fnhouse-swagger — pull request #2 by si14 (2014-12-25 14:14:37+00:00)
Title: Enable Swagger's OAuth2 support

This PR is a part of a changeset that is required to support OAuth2-protected API. Main PR: https://github.com/metosin/ring-swagger/pull/25

Two changes are introduced by this PR:

* additional arity is added to fnhouse.swagger/collect-routes. New
parameter is a function from handler's annotation to swagger's metadata.
It complements fnhouse's extra-info-fn, allowing to control Swagger
spec from a code that uses fnhouse-swagger.
* swagger-parameters map is now expected in resources. It will be
passed to ring-swagger as-is.

NOTE: this is a breaking change, because swagger-parameters map should
be provided in resources. fnk's optional notation ({foo "bar"})
doesn't seem to work in parameters map, possibly due to fnhouse or fnk
bug.