Skip to content

unwrapAndLookup(__thenApply_)

mattpolzin edited this page Jun 11, 2021 · 1 revision

unwrapAndLookup(_:thenApply:)

Unwrap and look up the value pointed to by the KeyPath. Fail with a ValidationError if the value is nil or not found in the Components for the current document.

public func unwrapAndLookup<T, U>(
    _ path: KeyPath<T, Either<JSONReference<U>, U>?>,
    thenApply validations: Validation<U>...
) -> (ValidationContext<T>) -> [ValidationError] 
Types
Protocols
Global Functions
Extensions
Clone this wiki locally