File tree 4 files changed +15
-7
lines changed
4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change
1
+ # UNRELEASED
2
+
3
+ ``` clj
4
+ [org.clojure/spec.alpha " 0.2.168" ] is available but we use " 0.1.143"
5
+ [org.clojure/clojurescript " 1.10.339" ] is available but we use " 1.10.329"
6
+ ```
7
+
1
8
# 0.7.1 (25.6.2018)
2
9
3
10
* Not setting a Swagger response model doesn't emit empty schema ` {} ` .
Original file line number Diff line number Diff line change 11
11
:source-uri " https://github.com/metosin/spec-tools/{version}/{filepath}#L{line}"
12
12
:metadata {:doc/format :markdown }}
13
13
14
- :dependencies [[org.clojure/spec.alpha " 0.1.143 " ]
14
+ :dependencies [[org.clojure/spec.alpha " 0.2.168 " ]
15
15
[com.fasterxml.jackson.core/jackson-databind " 2.9.6" ]]
16
16
17
17
:profiles {:dev {:plugins [[jonase/eastwood " 0.2.6" ]
23
23
:jvm-opts ^:replace [" -server" ]
24
24
; :global-vars {*warn-on-reflection* true}
25
25
:dependencies [[org.clojure/clojure " 1.9.0" ]
26
- [org.clojure/clojurescript " 1.10.329 " ]
26
+ [org.clojure/clojurescript " 1.10.339 " ]
27
27
[criterium " 0.4.4" ]
28
28
[prismatic/schema " 1.1.9" ]
29
29
[org.clojure/test.check " 0.9.0" ]
Original file line number Diff line number Diff line change 114
114
(defn nilable-spec? [spec]
115
115
(let [form (and spec (s/form spec))]
116
116
(boolean
117
- (if-not ( = form ::s/unknown )
117
+ (if ( seq? form)
118
118
(some-> form
119
119
seq
120
120
first
Original file line number Diff line number Diff line change 118
118
; ; tests
119
119
; ;
120
120
121
- (deftest CLJ-2152-test
122
- (testing " this should fail when the issues is fixed"
123
- (is (not (= `(s/& int?) (s/form (s/& int?)))))))
121
+ #?(:cljs
122
+ (deftest CLJ-2152-test
123
+ (testing " this should fail when the issues is fixed"
124
+ (is (not (= `(s/& int?) (s/form (s/& int?))))))))
124
125
125
126
(deftest nested-regexp-test
126
127
(is (= #{::p1 ::p2 ::p3 }
134
135
(testing " visitor visits all specs but not s/& & s/keys* inner specs"
135
136
(is (= #{::p1 ::p2 ::p3 ::p4 ::p5 ::p6 ::p7 ::p8 ::p9 ::p10
136
137
::p11 ::p12 ::p13 ::p14 ::p15 ::p16 ::p17 ::p18 ::p19 ::p20
137
- ::p21 ::p22 ::p23 ::p24 #_:: p25 ::p26 ::p27 #_::p28 #_::p29 #_::p30
138
+ ::p21 ::p22 ::p23 ::p24 #?( :clj :: p25) ::p26 ::p27 #_::p28 #_::p29 #_::p30
138
139
#_::p31 #_::p32 #_:p33 ::p34
139
140
::pred ::keys ::keys2 ::keys3
140
141
::or ::and ::merge ::every ::every-kv ::coll-of ::map-of
You can’t perform that action at this time.
0 commit comments