Skip to content

Commit c831df0

Browse files
committed
added failing test for #159
1 parent 80cc2cd commit c831df0

1 file changed

Lines changed: 1 addition & 27 deletions

File tree

test/compojure/api/integration_test.clj

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,11 +1193,7 @@
11931193
"/extra" irrelevant
11941194
"/runtime" irrelevant})})))
11951195

1196-
;;
1197-
;; with supported schemas
1198-
;;
1199-
1200-
(s/defschema Foo {:a s/Str})
1196+
(s/defschema Foo {:a [s/Keyword]})
12011197

12021198
(defapi with-defapi
12031199
(swagger-docs)
@@ -1214,25 +1210,3 @@
12141210

12151211
(fact "defapi & api define same results with supported schema types #159"
12161212
(get-spec with-defapi) => (get-spec (with-api)))
1217-
1218-
;;
1219-
;; with unsupported schemas
1220-
;;
1221-
1222-
(s/defschema Foo2 [s/Keyword])
1223-
1224-
(defapi with-defapi2
1225-
(swagger-docs)
1226-
(GET* "/foo" []
1227-
:return Foo2
1228-
(ok [:foo])))
1229-
1230-
(defn with-api2 []
1231-
(api
1232-
(swagger-docs)
1233-
(GET* "/foo" []
1234-
:return Foo2
1235-
(ok [:foo]))))
1236-
1237-
(fact "defapi & api define different results with unsuported schema types #159"
1238-
(get-spec with-defapi2) =not=> (get-spec (with-api2)))

0 commit comments

Comments
 (0)