mirror of
https://github.com/metosin/reitit.git
synced 2026-01-29 09:20:33 +00:00
Update deps
This commit is contained in:
parent
1d5337649e
commit
e1fbe4460f
2 changed files with 13 additions and 10 deletions
|
|
@ -26,17 +26,20 @@
|
||||||
(defprotocol IntoSpec
|
(defprotocol IntoSpec
|
||||||
(into-spec [this name]))
|
(into-spec [this name]))
|
||||||
|
|
||||||
|
(defn- ensure-name [?name]
|
||||||
|
(or ?name (keyword "" (name (gensym "spec")))))
|
||||||
|
|
||||||
(extend-protocol IntoSpec
|
(extend-protocol IntoSpec
|
||||||
|
|
||||||
#?(:clj clojure.lang.PersistentArrayMap
|
#?(:clj clojure.lang.PersistentArrayMap
|
||||||
:cljs cljs.core.PersistentArrayMap)
|
:cljs cljs.core.PersistentArrayMap)
|
||||||
(into-spec [this name]
|
(into-spec [this name]
|
||||||
(ds/spec name this))
|
(ds/spec (ensure-name name) this))
|
||||||
|
|
||||||
#?(:clj clojure.lang.PersistentHashMap
|
#?(:clj clojure.lang.PersistentHashMap
|
||||||
:cljs cljs.core.PersistentHashMap)
|
:cljs cljs.core.PersistentHashMap)
|
||||||
(into-spec [this name]
|
(into-spec [this name]
|
||||||
(ds/spec name this))
|
(ds/spec (ensure-name name) this))
|
||||||
|
|
||||||
Spec
|
Spec
|
||||||
(into-spec [this _] this)
|
(into-spec [this _] this)
|
||||||
|
|
@ -79,7 +82,7 @@
|
||||||
(for [[k response] responses]
|
(for [[k response] responses]
|
||||||
[k (update response :body #(coercion/-compile-model this % nil))])))))
|
[k (update response :body #(coercion/-compile-model this % nil))])))))
|
||||||
(-compile-model [_ model name]
|
(-compile-model [_ model name]
|
||||||
(into-spec model (or name (gensym "spec"))))
|
(into-spec model name))
|
||||||
(-open-model [_ spec] spec)
|
(-open-model [_ spec] spec)
|
||||||
(-encode-error [_ error]
|
(-encode-error [_ error]
|
||||||
(-> error
|
(-> error
|
||||||
|
|
|
||||||
14
project.clj
14
project.clj
|
|
@ -16,7 +16,7 @@
|
||||||
[metosin/reitit-schema "0.1.0-SNAPSHOT"]
|
[metosin/reitit-schema "0.1.0-SNAPSHOT"]
|
||||||
|
|
||||||
[meta-merge "1.0.0"]
|
[meta-merge "1.0.0"]
|
||||||
[metosin/spec-tools "0.5.1"]
|
[metosin/spec-tools "0.6.1"]
|
||||||
[metosin/schema-tools "0.10.0-SNAPSHOT"]]
|
[metosin/schema-tools "0.10.0-SNAPSHOT"]]
|
||||||
|
|
||||||
:plugins [[jonase/eastwood "0.2.5"]
|
:plugins [[jonase/eastwood "0.2.5"]
|
||||||
|
|
@ -42,12 +42,12 @@
|
||||||
[metosin/reitit]
|
[metosin/reitit]
|
||||||
[metosin/schema-tools "0.10.0-SNAPSHOT"]
|
[metosin/schema-tools "0.10.0-SNAPSHOT"]
|
||||||
|
|
||||||
[expound "0.4.0"]
|
[expound "0.5.0"]
|
||||||
[orchestra "2017.11.12-1"]
|
[orchestra "2017.11.12-1"]
|
||||||
|
|
||||||
[ring "1.6.3"]
|
[ring "1.6.3"]
|
||||||
[metosin/muuntaja "0.4.1"]
|
[metosin/muuntaja "0.5.0"]
|
||||||
[metosin/jsonista "0.1.0"]
|
[metosin/jsonista "0.1.1"]
|
||||||
|
|
||||||
[criterium "0.4.4"]
|
[criterium "0.4.4"]
|
||||||
[org.clojure/test.check "0.9.0"]
|
[org.clojure/test.check "0.9.0"]
|
||||||
|
|
@ -58,11 +58,11 @@
|
||||||
"-Dclojure.compiler.direct-linking=true"]
|
"-Dclojure.compiler.direct-linking=true"]
|
||||||
:test-paths ["perf-test/clj"]
|
:test-paths ["perf-test/clj"]
|
||||||
:dependencies [[compojure "1.6.0"]
|
:dependencies [[compojure "1.6.0"]
|
||||||
[org.immutant/immutant "2.1.9"]
|
[org.immutant/immutant "2.1.10"]
|
||||||
[io.pedestal/pedestal.route "0.5.3"]
|
[io.pedestal/pedestal.route "0.5.3"]
|
||||||
[org.clojure/core.async "0.3.465"]
|
[org.clojure/core.async "0.4.474"]
|
||||||
[ataraxy "0.4.0"]
|
[ataraxy "0.4.0"]
|
||||||
[bidi "2.1.2"]]}
|
[bidi "2.1.3"]]}
|
||||||
:analyze {:jvm-opts ^:replace ["-server"
|
:analyze {:jvm-opts ^:replace ["-server"
|
||||||
"-Dclojure.compiler.direct-linking=true"
|
"-Dclojure.compiler.direct-linking=true"
|
||||||
"-XX:+PrintCompilation"
|
"-XX:+PrintCompilation"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue