You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A defcontroller macro has been on my mind for some time now.
What would a defcontroller macro do?
In my mind, it requires the following:
Parameter validation (for query, path, and body params), type casting, output validation[1]
Bi-directional routing
Authorization?
[1] I find myself heavily inspired by https://github.com/metosin/compojure-api, but (a) I definitely don't need the swagger documentation, and (b) I don't think routing is the appropriate place for parameter validation.
The text was updated successfully, but these errors were encountered:
Now have parameter validation in place. Haven't really done anything with type casting, which I think is more important for basically any non-JSON validation (i.e. everything that isn't a :body param).
No output validation so far.
Also some interesting questions here around bidirectional routing. This is really the first time it's seemed valuable to me.
A
defcontroller
macro has been on my mind for some time now.What would a
defcontroller
macro do?In my mind, it requires the following:
[1] I find myself heavily inspired by https://github.com/metosin/compojure-api, but (a) I definitely don't need the swagger documentation, and (b) I don't think routing is the appropriate place for parameter validation.
The text was updated successfully, but these errors were encountered: