Skip to content

Commit

Permalink
Fixed an issue AwsResolver.CreateProperties() to use logical OR condi…
Browse files Browse the repository at this point in the history
…tion when checking for Amazon.Lambda.CloudWatchEvents.CloudWatchEvent type.
  • Loading branch information
ashishdhingra committed Jul 23, 2024
1 parent c5fde31 commit 47133f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net8.0</TargetFrameworks>
<Description>Amazon Lambda .NET Core support - CloudWatchEvents package.</Description>
<AssemblyTitle>Amazon.Lambda.CloudWatchEvents</AssemblyTitle>
<VersionPrefix>4.4.0</VersionPrefix>
<VersionPrefix>4.4.1</VersionPrefix>
<AssemblyName>Amazon.Lambda.CloudWatchEvents</AssemblyName>
<PackageId>Amazon.Lambda.CloudWatchEvents</PackageId>
<PackageTags>AWS;Amazon;Lambda</PackageTags>
Expand Down
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 47133f6

Please sign in to comment.