Skip to content

Instantly share code, notes, and snippets.

View theunforgiven's full-sized avatar

Nicholas Goodwin theunforgiven

  • rampecdn.com
  • Boston, MA
View GitHub Profile
@theunforgiven
theunforgiven / gist:e52f99104b3f36d2fd77
Created March 26, 2015 21:48
Example of finding scalatra routes without swagger metadata
describe("a servlet") {
val servlet = new MyServlet()
it("should have metadata") {
val allRoutesAnnotated = servlet.routes.methodRoutes.values.flatten.forall(x => {
x.metadata.contains(Symbols.Operation)
})
allRoutesAnnotated should be(true)
}