commonMain.validations.NoOpValidation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lf-kotlin-js Show documentation
Show all versions of lf-kotlin-js Show documentation
Kotlin integration for Lightweightform
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