Skip to content

Commit

Permalink
Remove duplicate require of schema.core
Browse files Browse the repository at this point in the history
  • Loading branch information
Koura committed Jun 25, 2020
1 parent 87d7e2e commit c1c3cd2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/cljc/reitit/swagger_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
[reitit.coercion.spec :as spec]
[reitit.coercion.malli :as malli]
[reitit.coercion.schema :as schema]
[schema.core :refer [Int]]
[muuntaja.core :as m]
[spec-tools.data-spec :as ds]
[schema.core :as s]))
Expand Down Expand Up @@ -77,11 +76,11 @@
["/schema" {:coercion schema/coercion}
["/plus/*z"
{:get {:summary "plus"
:parameters {:query {:x Int, :y Int}
:path {:z Int}}
:parameters {:query {:x s/Int, :y s/Int}
:path {:z s/Int}}
:swagger {:responses {400 {:schema {:type "string"}
:description "kosh"}}}
:responses {200 {:body {:total Int}}
:responses {200 {:body {:total s/Int}}
500 {:description "fail"}}
:handler (fn [{{{:keys [x y]} :query
{:keys [z]} :path} :parameters}]
Expand Down

0 comments on commit c1c3cd2

Please sign in to comment.