invoke

operator fun <D, M> Validation<D, Unit, M>.invoke(inspector: Inspector<D>): List<M>

Convenience execution function for Validation for the case, that the metadata is Unit. In those cases the metadata parameter can be omitted.

Parameters

inspector

The Inspector of type D that should be used for the validation process


operator fun <D, M> Validation<D, Unit, M>.invoke(data: D): List<M>

Convenience execution function for Validation for the case, that the metadata is Unit. In those cases the metadata parameter can be omitted.

Parameters

data

The data of type D that should be used for the validation process