It looks like a string interpreted as an SCI expression, which is a bit surprising.
How about adding :dispatch-key property for :multi schema? This prop could be mutually exclusive with :dispatch but when present will be treated as a literal key to dispatch by. This allows to dispatch by any key, including string, var, object etc.
I'm trying to write multi schema to validate a map with strings as a key:
Here is an exception thrown:
It looks like a string interpreted as an SCI expression, which is a bit surprising.
How about adding :dispatch-key property for :multi schema? This prop could be mutually exclusive with :dispatch but when present will be treated as a literal key to dispatch by. This allows to dispatch by any key, including string, var, object etc.