[FIX] correct enum type converting
This commit is contained in:
parent
4cbad1fc6a
commit
17fdd7b83b
@ -341,6 +341,11 @@ public class DataFactoryZod {
|
||||
if (clazz.isPrimitive()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (clazz.isEnum()) {
|
||||
return convertTypeZodEnum(clazz, previous);
|
||||
}
|
||||
|
||||
// add the current class to prevent multiple creation
|
||||
final ClassElement curentElementClass = new ClassElement(clazz);
|
||||
previous.add(curentElementClass);
|
||||
|
Loading…
x
Reference in New Issue
Block a user