reitit
reitit copied to clipboard
A fast data-driven routing library for Clojure/Script
When using `redirect-trailing-slash-handler` the redirect URL is missing the query-params, e.g. something like`/foo?bar=1` becomes `/foo/`.
- [x] Schema -> OpenAPI3 - [x] Malli -> OpenAPI3 (using json-schema) - [x] Spec -> OpenAPI3 - [x] Coercion for all content-types - [x] Coercion per content-type Fixes #84
I think this transformation ```clojure (malli.swagger/transform [:or int? string?]) ;; => {:type "integer", ;; :format "int64", ;; :x-anyOf [{:type "integer", :format "int64"} {:type "string"}]} ``` should resolve to just `{:x-anyOf...
Current exception-middleware just wraps any handler using the same exception handler map. We could use compiled middleware to combine map of exception handlers from route-data with general exception handlers.
The need for such a change is that reitit-openapi module creates openapi.js of 3.1.0 version, but current reitit-swagger-ui can't draw it, because dependency through root to ring-swagger-ui . ring-swagger-ui >...
Currently `reitit.http.interceptors.multipart` only has Clojure spec schemas for `temp-file-part` and `bytes-part`. Could also supply schema & malli versions. See `reitit.openapi-test/multipart-test` for inspiration: https://github.com/metosin/reitit/pull/593/files#diff-c18bf86982356e8898ead05214985b1ffa8f85f77f47094ac56cf82cb5eb95b7R434 Related to #591
The motivation behind this PR is to make `match-by-path` behave consistently no matter if you use `reitit.core/match-by-path` or `reitit.frontend/match-by-path`.
Upgrade it and fix. Probably related to #608 .
Escaped double quotes breaks the clojure.repl/doc output. Before: ```clojure (router ["/api" {:middleware [wrap-format wrap-oauth2]} ["/users" {:get get-user :post update-user :delete {:middleware [wrap-delete] :handler delete-user}}]]) ``` After: ```clojure (router ["/api" {:middleware...
I.e: ``` ["/api-url" {:POST api/do-this :parameters { ... } :summary "Do this"}] ``` This would make the method keyword stand out among the other route keywords (and also map to...