File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 )
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 )))
You can’t perform that action at this time.
0 commit comments