File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1212 [compojure " 1.2.1" ]
1313 [prismatic/schema " 0.3.2" ]
1414 [metosin/ring-http-response " 0.5.1" ]
15- [metosin/ring-swagger " 0.14.0" ]
15+ [metosin/ring-swagger " 0.14.1" ]
16+ [org.tobereplaced/lettercase " 1.0.0" ]
1617 [ring-middleware-format " 0.4.0" ]]
1718 :profiles {:thingie {:ring {:handler examples.thingie/app
1819 :reload-paths [" src" " examples/src" ]}
Original file line number Diff line number Diff line change 77 [compojure.core :refer :all ]
88 [plumbing.core :refer [fn->]]
99 [potemkin :refer [import-vars]]
10+ [org.tobereplaced.lettercase :as lc]
1011 [ring.swagger.common :refer :all ]
1112 [ring.swagger.core :as swagger]
1213 [ring.swagger.impl :as swagger-impl]
122123 (assoc-in route-with-meta [:metadata :parameters ] new-parameters))
123124 route-with-meta))
124125
125-
126126(defn ensure-parameter-schema-names [route-with-meta]
127127 (if-let [all-parameters (get-in route-with-meta [:metadata :parameters ])]
128128 (->> all-parameters
131131 (update-in parameter [:model ]
132132 swagger-impl/update-schema
133133 (fn-> (s/schema-with-name
134- (gensym (->CamelCase (name type))))))
134+ (gensym (lc/mixed (name type))))))
135135 parameter)))
136136 (assoc-in route-with-meta [:metadata :parameters ]))
137137 route-with-meta))
143143 (update-in route-with-meta [:metadata :return ]
144144 swagger-impl/update-schema
145145 (fn-> (s/schema-with-name
146- (gensym (->CamelCase " return" )))))
146+ (gensym (lc/mixed " return" )))))
147147 route-with-meta)
148148 route-with-meta))
149149
You can’t perform that action at this time.
0 commit comments