 
     (it "can expose the resource listing"
 
-        (->> (get* "/swagger")
-             (should-have-status HttpServletResponse/SC_OK)
-             #_ (tap "response")
-             :body
-             :apis
-             (map :path)
-             sort
-             ;; This is wrong and a fix is coming:
-             (should= ["/hotels" "/hotels/{hotel-id}/rooms"])))))
+        ;; The result is so large and complex, there isn't much we can do to check it here.
+        (->> (get* "/swagger.json")
+             (should-have-status HttpServletResponse/SC_OK)))))
 
-#_ (run-specs)
+(run-specs)

            [io.aviso.tracker :as t]
            [clojure.tools.logging :as l]
            [io.aviso.rook.server :as server])
  (:import [org.eclipse.jetty.server Server]))

(defn- swagger-object
  [rook-options swagger-options & ns-specs]

                                       :port         8192})]
    #(.stop server)))

(describe "io.aviso.rook.swagger"

  (it "can construct swagger data"
      (should-not-be-nil (swagger-object nil swagger-options
                                         ["hotels" 'hotels
                                          [[:hotel-id "rooms"]
                                           'rooms]])))

  (context "end-to-end (synchronous)"

    (with-all handler (-> (rook/namespace-handler {:swagger-options swagger-options}
                                                  ["hotels" 'hotels
                                                   [[:hotel-id "rooms"] 'rooms]])
                          rook/wrap-with-standard-middleware))
