Currently discriminating on a field, which changes between different NativeEnum types causes model definition to be incorrect as mapping from discriminator field doesn't map to each of the enum values.
I used the same solution that existed for ZodEnum, and applied it for ZodNativeEnum
Currently discriminating on a field, which changes between different NativeEnum types causes model definition to be incorrect as mapping from discriminator field doesn't map to each of the enum values.
I used the same solution that existed for ZodEnum, and applied it for ZodNativeEnum