Skip to content

lookup(__thenApply_)

mattpolzin edited this page Jun 11, 2021 · 1 revision

lookup(_:thenApply:)

Look up the value pointed to by the KeyPath. Fail with a ValidationError if the value is not found in the Components for the current document.

public func lookup<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