Skip to content

Serialization Simplification #71

Serialization Simplification

Serialization Simplification #71

Triggered via pull request October 30, 2023 10:52
Status Success
Total duration 1m 38s
Artifacts

release.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 warnings
dotnet: src/NATS.Client.Core/INatsSerializer.cs#L151
Using member 'System.Text.Json.JsonSerializer.Serialize<TValue>(Utf8JsonWriter, TValue, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
dotnet: src/NATS.Client.Core/INatsSerializer.cs#L161
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(ref Utf8JsonReader, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
dotnet: src/NATS.Client.JetStream/Internal/NatsJSErrorAwareJsonSerializer.cs#L26
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(JsonElement, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
dotnet: src/NATS.Client.JetStream/Internal/NatsJSErrorAwareJsonSerializer.cs#L30
Using member 'System.Text.Json.JsonSerializer.Deserialize<TValue>(JsonDocument, JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.
dotnet: src/NATS.Client.JetStream/NatsJSContext.cs#L132
Using member 'System.ComponentModel.DataAnnotations.Validator.ValidateObject(Object, ValidationContext)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The Type of instance cannot be statically discovered.
dotnet: src/NATS.Client.JetStream/NatsJSContext.cs#L132
Using member 'System.ComponentModel.DataAnnotations.ValidationContext.ValidationContext(Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The Type of instance cannot be statically discovered.
dotnet
A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "NATS.Client.Core