anatine / zod-plugins

Plugins and utilities for Zod
640 stars 89 forks source link

[zod-mock] mockeryMapper only used for strings #172

Open dxlbnl opened 10 months ago

dxlbnl commented 10 months ago

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

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

grmkris commented 8 months ago

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

pct-cclausen commented 8 months ago

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

joost-quro commented 6 months ago

+1

Mat-moran commented 6 months ago

+1

Mat-moran commented 6 months ago

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?