All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.validations.NoOpValidation.kt Maven / Gradle / Ivy

There is a newer version: 4.10.0-legacy-ie11
Show newest version
package pt.lightweightform.lfkotlin.validations

import pt.lightweightform.lfkotlin.Context
import pt.lightweightform.lfkotlin.Issue
import pt.lightweightform.lfkotlin.SyncValidation

/**
 * No-op validation.
 *
 * Useful in scenarios where a certain validation should only run in a specific platform. The actual
 * implementation of said validation in other platforms can extend this class.
 */
public open class NoOpValidation : SyncValidation {
    override fun Context.validate(value: T): Collection = emptyList()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy