Serialization Simplification #454
Annotations
10 warnings
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
The logs for this run have expired and are no longer available.
Loading