[FIX] ApiNotNull inplementation

This commit is contained in:
Edouard DUPIN 2025-04-03 10:25:33 +02:00
parent 5960bbc666
commit 8dde49adff

View File

@ -238,7 +238,7 @@ public class TsClassElement {
public boolean isOptionalTypeZod(final FieldProperty field) {
if (field.apiNotNull() != null) {
return field.apiNotNull().value();
return !field.apiNotNull().value();
}
// Common checking element (apply to List, Map, ...)
if (field.nullable()) {