Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This stuff is great. I used it to design an API in Python.

A request comes in and the wrapper checks for a schema. if it is not a GET request and one does not exist it errors out even before the method is called. If one exists, the schema is validated automatically. If the target method is called, you can be safe assuming that the input is valid (in terms of type and does it exist or not).

Same goes for output. Server will error out before it lets incorrect output be returned to the user. Great way to present what the application accepts to a developer. This is what it will accept and return, because this is what we use to validate input and output!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: