Closed ridem closed 2 years ago
Oops 😅 you're right, this should only resolve to the values. Feel free to create a PR. Thanks for bringing this up!
:tada: This issue has been resolved in version 1.0.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Great library!
I've noticed that fixtures for nativeEnum can return the actual keys of the enum, which are invalid values as per the zod schema. Is there a reason for this? If it's a bug, happy to make a PR.
For example, I don't understand why
"Apple"
,"Banana"
and"Cantaloupe"
are valid values here: https://github.com/timdeschryver/zod-fixture/blob/80d60351483dc26b9fb52e94ee2fe749c00fd7d6/test/create.test.ts#L427-L437