Fork me on GitHub
#reitit
<
2024-02-29
>
avi18:02:40

👋 hello! I’m building a Web API with Reitit (via Kit) and as soon as I specified response schemata in my routes response validation started working, which was great! However I’m now adding schemata for requests and while the response coercion seems to be working correctly, and the requests look correct in the Swagger UI, I don’t seem to have any request validation happening. Can anyone suggestion one or two things to check to enable request validation?

avi18:02:46

Thank you!

avi18:02:51

Background: I’m a new user of Reitit, via a new project I’ve created via Kit. I’ve been away from Clojure Web dev for a few years and I’d used Compojure back in the day. Reitit seems really cool!

Mateusz Mazurczak19:02:52

[SOLVED] Hi, when using reitit ring-handler with :inject-match? true, the fragment data is not passed to the match. I've noticed that if I have :href "/path#test" in the match I will have :fragment "test", but if I manually paste the url in the browser as /path#test the match data is comming with :fragment nil. Do I need some additional setting/parsing for it?