A simple and flexible object validator.