 
     (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)

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

#_
(describe "io.aviso.rook.swagger"

  (it "can construct swagger data"
      (let [data (swagger-object nil nil
                                 ["hotels" 'hotels
                                  [[:hotel-id "rooms"] 'rooms]])]
        #_ (should= expected-swagger-data data)))

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

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

                      expected-status#
                      (pretty-print response#))))))


(def swagger-options (-> rs/default-swagger-options
                         (assoc-in [:template :info :title] "Hotels and Rooms API")
                         (assoc-in [:template :info :version] "Pre-Alpha")))

#_ (binding [t/*log-trace-level* :info]
  (-> (swagger-object nil swagger-options
                      ["hotels" 'hotels
                       [[:hotel-id "rooms"] 'rooms]])
