Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defcontroller #10

Open
1 of 3 tasks
venantius opened this issue Nov 3, 2015 · 1 comment
Open
1 of 3 tasks

Defcontroller #10

venantius opened this issue Nov 3, 2015 · 1 comment

Comments

@venantius
Copy link
Owner

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.

@venantius
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant