Skip to content

Commit

Permalink
fix DateTime json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
cyppan committed Oct 19, 2016
1 parent b154987 commit f31ef12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject grape "0.1.0"
(defproject grape "0.1.1"
:description "The opinionated, data-first, REST, GraphQL and Falcor enabled API Clojure library"
:url "https://github.com/cyppan/grape"
:license {:name "Eclipse Public License"
Expand Down
2 changes: 1 addition & 1 deletion src/grape/schema.clj
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@

(def date-time-matcher
(let [date-formatter (get-in *deps* [:config :date-formatter] (f/formatters :date-time))]
{DateTime (coerce/safe #(f/parse date-formatter))}))
{DateTime (coerce/safe #(f/parse date-formatter %))}))

(defn cleve-coercion-matcher [schema]
(or (stc/default-coercion-matcher schema)
Expand Down

0 comments on commit f31ef12

Please sign in to comment.