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