mirror of
https://github.com/metosin/reitit.git
synced 2026-01-02 06:38:26 +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-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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue