Skip to content

Commit 5bc537d

Browse files
committed
fix: Fixed nullable field check
1 parent 6b54b98 commit 5bc537d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/schema/classes/TypescriptConversion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class TypescriptConversion {
289289
private getTypescriptFieldNullable(
290290
fieldAttributes: SchemaInterface["fields"][0]
291291
) {
292-
return fieldAttributes.required || "defaultValue" in fieldAttributes;
292+
return !(fieldAttributes.required || "defaultValue" in fieldAttributes);
293293
}
294294

295295
/**

0 commit comments

Comments
 (0)