[FIX] ApiNotNull inplementation
This commit is contained in:
parent
5960bbc666
commit
8dde49adff
@ -238,7 +238,7 @@ public class TsClassElement {
|
|||||||
|
|
||||||
public boolean isOptionalTypeZod(final FieldProperty field) {
|
public boolean isOptionalTypeZod(final FieldProperty field) {
|
||||||
if (field.apiNotNull() != null) {
|
if (field.apiNotNull() != null) {
|
||||||
return field.apiNotNull().value();
|
return !field.apiNotNull().value();
|
||||||
}
|
}
|
||||||
// Common checking element (apply to List, Map, ...)
|
// Common checking element (apply to List, Map, ...)
|
||||||
if (field.nullable()) {
|
if (field.nullable()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user