A simple decorator that validates JSON data against a fixed schema