Skip to content

Commit

Permalink
fix(reflection): do not override user defined nullable attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed Aug 31, 2022
1 parent b2c1bd8 commit 75a6487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reflection/src/TsMorphMetadataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class TsMorphMetadataProvider extends MetadataProvider {
prop.type = type;

if (optional) {
prop.nullable = true;
prop.nullable ??= true;
}

this.processWrapper(prop, 'IdentifiedReference');
Expand Down

0 comments on commit 75a6487

Please sign in to comment.