feat: add non-generic Deserialize method with dynamic code requirements to KubernetesJson #1701
+43
−0
Annotations
10 warnings
|
Build:
src/KubernetesClient/Models/KubernetesDateTimeOffsetYamlConverter.cs#L62
In externally visible method 'void KubernetesDateTimeOffsetYamlConverter.WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer serializer)', validate parameter 'emitter' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
|
Build:
src/KubernetesClient/Models/IntOrStringJsonConverter.cs#L27
In externally visible method 'void IntOrStringJsonConverter.Write(Utf8JsonWriter writer, IntOrString value, JsonSerializerOptions options)', validate parameter 'value' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
|
Build:
src/KubernetesClient/Models/ResourceQuantity.cs#L174
In externally visible method 'ResourceQuantity.implicit operator decimal(ResourceQuantity v)', validate parameter 'v' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
|
Build:
src/KubernetesClient/Models/ResourceQuantityJsonConverter.cs#L31
In externally visible method 'void ResourceQuantityJsonConverter.Write(Utf8JsonWriter writer, ResourceQuantity value, JsonSerializerOptions options)', validate parameter 'value' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
|
Build:
src/KubernetesClient/KubernetesJson.cs#L27
In externally visible method 'void Iso8601TimeSpanConverter.Write(Utf8JsonWriter writer, TimeSpan value, JsonSerializerOptions options)', validate parameter 'writer' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
|
Build:
src/KubernetesClient/KubernetesJson.cs#L76
In externally visible method 'void KubernetesDateTimeOffsetConverter.Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options)', validate parameter 'writer' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
|
Build:
src/KubernetesClient/KubernetesJson.cs#L240
In externally visible method 'string KubernetesJson.Serialize(JsonNode value, JsonSerializerOptions jsonSerializerOptions = null)', validate parameter 'value' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
|
Build:
src/KubernetesClient/KubernetesJson.cs#L220
In externally visible method 'string KubernetesJson.Serialize(JsonDocument value, JsonSerializerOptions jsonSerializerOptions = null)', validate parameter 'value' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
|
Build:
src/KubernetesClient/KubernetesJson.cs#L210
In externally visible method 'string KubernetesJson.Serialize(object value, JsonSerializerOptions jsonSerializerOptions = null)', validate parameter 'value' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
|
|
Build:
src/KubernetesClient/Models/KubernetesDateTimeYamlConverter.cs#L8
The keyword 'new' should be followed by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1000.md)
|
Loading