Skip to content

Commit

Permalink
Don't auto-coerce YAML responses
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Jan 8, 2017
1 parent 1c1b5ef commit 27537e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compojure/api/middleware.clj
Expand Up @@ -85,8 +85,7 @@

(def default-coercion-options
{:body {:default (constantly nil)
:formats {"application/json" coerce/json-schema-coercion-matcher
"application/yaml" coerce/query-schema-coercion-matcher}}
:formats {"application/json" coerce/json-schema-coercion-matcher}}
:string coerce/query-schema-coercion-matcher
:response {:default (constantly nil)
;; TODO: don't auto-coerce the JSON responses? => would be a breaking change in 1.2
Expand Down

0 comments on commit 27537e2

Please sign in to comment.