Skip to content

Commit 2233108

Browse files
committed
Accept null values for nullable fields
1 parent a2c5b81 commit 2233108

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/issues.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ function checkDefault(field) {
1111

1212
if (isFunction(field.default)) return true;
1313

14+
if (!field.notNull && field.default.toLowerCase() === "null") return true;
15+
1416
switch (field.type) {
1517
case "INT":
1618
case "BIGINT":

0 commit comments

Comments
 (0)