diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e4866de..f23aa457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.7.8] - 2024-02-02 + +### Changed + +- Updated `DynamicallyAccessedMembers` annotations for the `WriteCollectionOfEnumValues` method. + ## [1.7.7] - 2024-02-01 ### Changed diff --git a/src/Microsoft.Kiota.Abstractions.csproj b/src/Microsoft.Kiota.Abstractions.csproj index 5d523df1..66996541 100644 --- a/src/Microsoft.Kiota.Abstractions.csproj +++ b/src/Microsoft.Kiota.Abstractions.csproj @@ -14,7 +14,7 @@ https://aka.ms/kiota/docs true true - 1.7.7 + 1.7.8 true false diff --git a/src/serialization/ISerializationWriter.cs b/src/serialization/ISerializationWriter.cs index 602657b3..9714da39 100644 --- a/src/serialization/ISerializationWriter.cs +++ b/src/serialization/ISerializationWriter.cs @@ -118,7 +118,7 @@ public interface ISerializationWriter : IDisposable /// The key to be used for the written value. May be null. /// The enum values to be written. #if NET5_0_OR_GREATER - void WriteCollectionOfEnumValues<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]T>(string? key, IEnumerable? values) where T : struct, Enum; + void WriteCollectionOfEnumValues<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields)]T>(string? key, IEnumerable? values) where T : struct, Enum; #else void WriteCollectionOfEnumValues(string? key, IEnumerable? values) where T : struct, Enum; #endif