Companion

Properties

Link copied to clipboard

Default name of the external context from which to obtain the current scope.

Functions

Link copied to clipboard
@JvmName(name = "create")
operator fun <T, TState, TScope> invoke(validation: StatefulValidation<T, TState>, scopes: ValidationScopes<TScope>, scopeExternalContextName: String = DEFAULT_SCOPE_EXTERNAL_CONTEXT_NAME): ScopedStatefulValidation<T, TState, TScope>

Creates a new scoped stateful validation from an already existing stateful validation that runs when the current "validation scope" is allowed by the provided scopes.

@JvmName(name = "create")
operator fun <T, TScope> invoke(validation: Validation<T>, scopes: ValidationScopes<TScope>, scopeExternalContextName: String = DEFAULT_SCOPE_EXTERNAL_CONTEXT_NAME): ScopedValidation<T, TScope>

Creates a new scoped validation from an already existing validation that runs when the current "validation scope" is allowed by the provided scopes.