@@ -0,0 +1,773 @@
+from kernel.validation import validate_input, ValidationError%0A%0A%0Adef test_valid_input():%0A    payload = %7B%0A        'foo': 'bar'%0A    %7D%0A    schema = %7B%0A        'properties': %7B%0A            'foo': %7B%0A                'type': 'string'%0A            %7D%0A        %7D%0A    %7D%0A    try:%0A        validate_input(payload, schema)%0A    except ValidationError:%0A        assert False, %22Did not expect validation error%22%0A    else:%0A        assert True%0A%0A%0Adef test_invalid_input_raises_error():%0A    payload = %7B%0A        'foo': True%0A    %7D%0A    schema = %7B%0A        'properties': %7B%0A            'foo': %7B%0A                'type': 'string'%0A            %7D%0A        %7D%0A    %7D%0A    try:%0A        validate_input(payload, schema)%0A    except ValidationError:%0A        return  # OK%0A    else:%0A        assert False, %22Expected an error%22%0A

add tests for validator