mirror of
https://github.com/metosin/reitit.git
synced 2026-01-29 17:20:36 +00:00
case
This commit is contained in:
parent
2c476177be
commit
e879df54da
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@
|
||||||
(-get-options [_] opts)
|
(-get-options [_] opts)
|
||||||
(-get-apidocs [this spesification {:keys [parameters responses]}]
|
(-get-apidocs [this spesification {:keys [parameters responses]}]
|
||||||
;; TODO: this looks identical to spec, refactor when schema is done.
|
;; TODO: this looks identical to spec, refactor when schema is done.
|
||||||
(condp = spesification
|
(case spesification
|
||||||
:swagger (swagger/swagger-spec
|
:swagger (swagger/swagger-spec
|
||||||
(merge
|
(merge
|
||||||
(if parameters
|
(if parameters
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
(-get-name [_] :spec)
|
(-get-name [_] :spec)
|
||||||
(-get-options [_] opts)
|
(-get-options [_] opts)
|
||||||
(-get-apidocs [this spesification {:keys [parameters responses]}]
|
(-get-apidocs [this spesification {:keys [parameters responses]}]
|
||||||
(condp = spesification
|
(case spesification
|
||||||
:swagger (swagger/swagger-spec
|
:swagger (swagger/swagger-spec
|
||||||
(merge
|
(merge
|
||||||
(if parameters
|
(if parameters
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue