Validator
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.
Constructors
Functions
isValid
Link copied to clipboard
validates the given model by using the validate functions which must be implemented with the validation rules.
validate
Link copied to clipboard
validates the given inspector and it's containing data by using the given metadata and returns a List of ValidationMessages.
validates the given inspector and it's containing data by using the given metadata and returns a List of ValidationMessages.