Fork me on GitHub
#malli
<
2022-04-11
>
Martynas Maciulevičius10:04:28

Hey. Is there a way to specify that a schema decoder should decode into a list instead of a vector? I'd like to have this schema: [:list :string] Is this possible without additional code (be it in the transformation step or after the decoding)? I think a decoder could pick this one up but it would be a custom one: [:vector {:type :list} :string] But I simply want to not add any code at all, if possible (maybe to serialize the schema later, not sure). (type (malli.generator/generate [:sequential :nil])) => clojure.lang.PersistentVector

ikitommi10:04:11

currently, no. but would be nice. there is a collection-transformer but it’s current purpose is to ensure the right format, should read the :type etc. property for the correct target type