From e879df54da8a5458a6bdb578a240e09e92a36190 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Mon, 30 Jul 2018 11:09:03 +0300 Subject: [PATCH] case --- modules/reitit-schema/src/reitit/coercion/schema.cljc | 2 +- modules/reitit-spec/src/reitit/coercion/spec.cljc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/reitit-schema/src/reitit/coercion/schema.cljc b/modules/reitit-schema/src/reitit/coercion/schema.cljc index c7bbc7e6..9bd512f6 100644 --- a/modules/reitit-schema/src/reitit/coercion/schema.cljc +++ b/modules/reitit-schema/src/reitit/coercion/schema.cljc @@ -48,7 +48,7 @@ (-get-options [_] opts) (-get-apidocs [this spesification {:keys [parameters responses]}] ;; TODO: this looks identical to spec, refactor when schema is done. - (condp = spesification + (case spesification :swagger (swagger/swagger-spec (merge (if parameters diff --git a/modules/reitit-spec/src/reitit/coercion/spec.cljc b/modules/reitit-spec/src/reitit/coercion/spec.cljc index db3e6206..7de3f423 100644 --- a/modules/reitit-spec/src/reitit/coercion/spec.cljc +++ b/modules/reitit-spec/src/reitit/coercion/spec.cljc @@ -87,7 +87,7 @@ (-get-name [_] :spec) (-get-options [_] opts) (-get-apidocs [this spesification {:keys [parameters responses]}] - (condp = spesification + (case spesification :swagger (swagger/swagger-spec (merge (if parameters