Describes the logic for validating a given data-model. By implementing this you must describe, how a certain data-model should be validated. This is done by returning a List of ValidationMessages in the validate functions.
It is recommended to put the concrete implementation of this Validator right next to your data classes in the
commonMain section of your Kotlin multiplatform project. Then you can write the validation logic once and use them in the JS and JVM world.