I'm trying to use the xform argument on the proto-map->clj-map function to handle proto-maps that have fields using one-of.
However, the xform is being applied after the default mapper, so it cannot access the proto-map. Is this order supposed to be this way?
|
xform (comp mapper xform)] |
If the xform is meant to be the first transducer, it should be:
Reference from Clojure docs: https://clojure.org/reference/transducers#_defining_transformations_with_transducers