reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
abdullahibra 2020-07-12T12:51:01.222400Z

Hi everyone,

abdullahibra 2020-07-12T12:51:25.223Z

how can i use support auto-reload for reitit pedestal ?

abdullahibra 2020-07-12T12:52:23.223700Z

i was using ns-tracker to achieve that:

(defonce modified-namespaces (ns-tracker ["src"]))

              ::server/routes #(do
                                 (doseq [ns-sym (modified-namespaces)]
                                   (require ns-sym :reload))
                                 (route/expand-routes (deref #'service/routes)))

abdullahibra 2020-07-12T14:33:55.224100Z

i have another issue

abdullahibra 2020-07-12T14:34:11.224600Z

i have tried the example at reitit/examples/pedestal-swagger

abdullahibra 2020-07-12T14:35:16.225700Z

but it got an error when i provide value which not match the schema defined, how can i make that prettier, like bad request with simple error message

abdullahibra 2020-07-12T14:36:13.226200Z

the current i got 500 internal server error

abdullahibra 2020-07-12T14:37:56.226300Z