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