Skip to content

Commit

Permalink
lazily load rmf
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed May 13, 2024
1 parent 2b56bae commit 1cd7c7a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/compojure/api/middleware.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
[compojure.api.request :as request]
[compojure.api.impl.logging :as logging]

[ring.middleware.format-params :refer [wrap-restful-params]]
[ring.middleware.format-response :refer [wrap-restful-response]]
[ring.swagger.coerce :as coerce]

ring.middleware.http-response
Expand Down Expand Up @@ -331,13 +329,15 @@
(seq formats) (rsm/wrap-swagger-data {:produces (->mime-types (remove response-only-mimes formats))
:consumes (->mime-types formats)})
true (wrap-options (select-keys options [:ring-swagger :coercion]))
(seq formats) (wrap-restful-params {:formats (remove response-only-mimes formats)
:handle-error handle-req-error
:format-options params-opts})
(seq formats) ((requiring-resolve 'ring.middleware.format-params/wrap-restful-params)
{:formats (remove response-only-mimes formats)
:handle-error handle-req-error
:format-options params-opts})
exceptions (wrap-exceptions exceptions)
(seq formats) (wrap-restful-response {:formats formats
:predicate serializable?
:format-options response-opts})
(seq formats) ((requiring-resolve 'ring.middleware.format-response/wrap-restful-response)
{:formats formats
:predicate serializable?
:format-options response-opts})
true wrap-keyword-params
true wrap-nested-params
true wrap-params)))
Expand Down

0 comments on commit 1cd7c7a

Please sign in to comment.