anatine/zod-plugins

[zod-mock] mockeryMapper only used for strings

dxlbnl opened this issue · 6 comments

dxlbnl commented

I expect mockeryMapper to be used for all value types (number | boolean | string).

But it seems to be only called when encountering string keys.

would be also get to typesafe key, atleast for the first row

I noticed this, too, would be nice to be more flexible here

I notice also it, and it is strange that this does not work because it is in the README and example with numbers when they show the mockeryMapper function.

It is maybe a bug in the latest versions?