Skip to content

Commit f930475

Browse files
author
Rajkumar Natarajan
committed
Incorporate the review comments
1 parent 24ffe64 commit f930475

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ring/swagger/openapi3.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
transformed)
149149
route))
150150

151-
(defn get-response-ref [v]
151+
(defn get-response-ref ^String [v]
152152
(some-> (-> v
153153
:content
154154
vals
@@ -171,8 +171,8 @@
171171
(update-in [:requestBodySchemas] conj {(keyword body-name) (:requestBody definition)})
172172
(update-in [:requestBodyDefinitions method] conj (str "#/components/requestBodies/" body-name)))) acc)
173173
responses-acc (reduce-kv (fn [acc-res k v]
174-
(let [response-path ^String (get-response-ref v)
175-
response-name ^String (if response-path (last (.split response-path "/")) (gensym))
174+
(let [response-path (get-response-ref v)
175+
response-name (if response-path (last (.split response-path "/")) (gensym))
176176
response-path-val (keyword response-name)]
177177
(-> acc-res
178178
(update-in [:responses method k] conj response-path)

0 commit comments

Comments
 (0)