Tommi Reiman
Tommi Reiman
Hi. You are right, it should have at least the `wrap-format` to be able to return JSON. PR most welcome.
This is a major breaking change. I propose we'll postpone this to 1.0.0, could be soon (lot's of other... wrong things like the one this fixes.
You can currently add any swagger data using `:swagger` key, either to route-data or to models. Example here: https://github.com/metosin/reitit/blob/master/examples/http-swagger/src/example/server.clj#L32-L37 & https://cljdoc.org/d/metosin/reitit/0.5.15/doc/ring/swagger-support
For 1, some extra considerations: 1) how would the resulting `Match` indicate what `:request-method` was matched? a) new key, `:request-method` which can be `nil` (top-level match) or a keyword (method-matched)...
Extended example, seen through a `Match`: ```clj (require '[reitit.http :as http]) (require '[reitit.core :as r]) (def router (http/router ["/api" ["/users" ["" {:name :api.user/base :get {:name :api.user/get} :post {:name :api.users/create :parameters...
Great comments. Relevant PR with intermediate paths #326. I think these should resolved in sync.
DIscussed about this, we'll push the `:name` into endpoints. Should be out soon.
initial version done.
There is https://github.com/metosin/reitit/blob/master/modules/reitit-middleware/src/reitit/ring/middleware/parameters.clj, which is the current ring impl, I don't think there is anything else around. This issue is quite big, there could be 3 subissues: - [x] the...
another option for the new key `:content` would be to reuse the `:body` key, but I think it would conflict with the string keys.