http middleware for common alamid-schema tasks like validation & sanitization