Skip to content

lookup(_:thenApply:)

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