We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
Does Sinatra support middleware at route level? For example, in NodeJS I can do as below.
Sinatra
middleware
route level
router.post("/like", validate(generic.FieldValueSchema), catchIt(controller.searchLike)) # validate is simply a generic payload / schema validator
In the event of a wrong payload I want to fail fast and not even reach the route handler.
Or what is the best way to do route level schema validation in Sinatra?
route level schema validation
Any thoughts?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Does
Sinatra
supportmiddleware
atroute level
? For example, in NodeJS I can do as below.In the event of a wrong payload I want to fail fast and not even reach the route handler.
Or what is the best way to do
route level schema validation
in Sinatra?Any thoughts?
The text was updated successfully, but these errors were encountered: