check, we can use
Match.Oneof to specify a type. How to do the same in simple-schema?
Do you really want two types for one key? Sounds like a code smell to me. Perhaps you can fallback to an empty thing if its undefined?
I am building an account package, which need to check password. but, password does has two form: a string as plain text, or an object as hashed data.