Utility function to help find the decoder matching a certain discriminator This is useful when deserializing on the client side of a request/response round trip.
Given a vector of alternatives, and a schema compiler, selects the decoder associated to the given discriminator, and maps it so that it lifts a throwable
Given a vector of alternatives, and a schema compiler, selects the decoder associated to the given discriminator, and maps it so that it lifts a throwable
Value parameters
compiler:
the compiler for a given decoder
maybeErrorSchema:
the ErrorSchema instance associated to an operation