Simple Scala validation framework