             [reitit.swagger :as swagger]
             [reitit.ring.coercion :as rrc]
             [reitit.coercion.spec :as spec]
-            [reitit.coercion.schema :as schema]))
+            [reitit.coercion.schema :as schema]
+            [schema.core :refer [Int]]))
 
 (def app
   (ring/ring-handler

               :handler swagger/swagger-spec-handler}}]

       ["/spec" {:coercion spec/coercion}

        ["/minus"
         {:get {:summary "minus"
                :parameters {:query {:x int?, :y int?}}
                :responses {200 {:body {:total int?}}}
                :handler (fn [{{{:keys [x y]} :query} :parameters}]
                           {:status 200, :body {:total (- x y)}})}}]

        ["/plus"
         {:get {:summary "plus"
                :parameters {:query {:x int?, :y int?}}

                           {:status 200, :body {:total (+ x y)}})}}]]

       ["/schema" {:coercion schema/coercion}
        ["/plus"
         {:get {:summary "plus"
                :parameters {:query {:x Int, :y Int}}
                :responses {200 {:body {:total Int}}}
                :handler (fn [{{{:keys [x y]} :query} :parameters}]
                           {:status 200, :body {:total (+ x y)}})}}]]]

