Skip to content

Commit

Permalink
Fixed AwsResolver.CreateProperties() to use logical OR condition when…
Browse files Browse the repository at this point in the history
… checking for Amazon.Lambda.CloudWatchEvents.CloudWatchEvent type.
  • Loading branch information
ashishdhingra committed Jul 30, 2024
1 parent eb7e990 commit 7e1b1ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ protected override IList<JsonProperty> CreateProperties(Type type, MemberSeriali
}
}
}
// If user is directly using CloudWatchEvent class or using a derived type created in custom namespace.
else if (type.FullName.StartsWith("Amazon.Lambda.CloudWatchEvents.")
&& (type.GetTypeInfo().BaseType?.FullName?.StartsWith("Amazon.Lambda.CloudWatchEvents.CloudWatchEvent`",
|| (type.GetTypeInfo().BaseType?.FullName?.StartsWith("Amazon.Lambda.CloudWatchEvents.CloudWatchEvent`",
StringComparison.Ordinal) ?? false))
{
foreach (JsonProperty property in properties)
Expand Down

0 comments on commit 7e1b1ab

Please sign in to comment.