dougblack / sleepy

rest for go
673 stars 56 forks source link

Add Parameter Type Validation #8

Open dougblack opened 10 years ago

dougblack commented 10 years ago

Think of a way to do automatic type validation on parameters and 400 when invalid.

marksteve commented 10 years ago

I particularly like how RequestParser in Flask-Restful works. Maybe a similar api would work here too?

joslinm commented 10 years ago

I don't see this enough in APIs. Two projects that might be of interest to you:

This sounds like a fun feature. I'll work a little on this issue and submit a PR when/if I think I got something.