Specifying a Flexible Schema Type with Dependencies
Hello, I'm writing a program that receives a Schema as a dependency. The program uses decodeUnknown to decode the input using the Schema. However, the Schema itself can have dependencies. How should I specify the type of Schema as a dependency of the program? I want the Schema to be as flexible as possible, but using
Schema.Schema<Decoded, Encoded, any> feels wrong—the any bothers me. Does this make sense to anyone?