Skip to content

unwrapAndLookup(_:thenApply:)

mattpolzin edited this page Jan 10, 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