Skip to content

Enable nullable reference types for generated models #2036

Enable nullable reference types for generated models

Enable nullable reference types for generated models #2036

Re-run triggered December 26, 2025 09:59
Status Success
Total duration 17m 16s
Artifacts 3

buildtest.yaml

on: pull_request
Matrix: Dotnet build
Fit to window
Zoom out
Zoom in

Annotations

60 warnings
MSBuild build: src/LibKubernetesGenerator/PluralHelper.cs#L40
Possible null reference return.
MSBuild build: src/LibKubernetesGenerator/ClassNameHelper.cs#L67
Dereference of a possibly null reference.
MSBuild build: src/LibKubernetesGenerator/ClassNameHelper.cs#L66
Converting null literal or possible null value to non-nullable type.
MSBuild build: src/LibKubernetesGenerator/ClassNameHelper.cs#L66
Dereference of a possibly null reference.
MSBuild build: src/LibKubernetesGenerator/ClassNameHelper.cs#L43
Dereference of a possibly null reference.
MSBuild build: src/LibKubernetesGenerator/ClassNameHelper.cs#L42
Converting null literal or possible null value to non-nullable type.
MSBuild build: src/LibKubernetesGenerator/ClientSetGenerator.cs#L74
Possible null reference argument for parameter 'key' in 'OpenApiOperationDescription[] Dictionary<string, OpenApiOperationDescription[]>.this[string key]'.
MSBuild build: src/LibKubernetesGenerator/ClientSetGenerator.cs#L66
Converting null literal or possible null value to non-nullable type.
MSBuild build: src/LibKubernetesGenerator/ClientSetGenerator.cs#L57
Argument of type 'IDictionary<string, object?>' cannot be used for parameter 'extensionData' of type 'IDictionary<string, object>' in 'bool ClientSetGenerator.HasKubernetesAction(IDictionary<string, object> extensionData)' due to differences in the nullability of reference types.
MSBuild build: src/LibKubernetesGenerator/ClientSetGenerator.cs#L57
Possible null reference argument for parameter 'extensionData' in 'bool ClientSetGenerator.HasKubernetesAction(IDictionary<string, object> extensionData)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L302
Possible null reference return.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/GeneralNameHelper.cs#L48
Possible null reference argument for parameter 'definition' in 'string ClassNameHelper.GetClassNameForSchemaDefinition(JsonSchema definition)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/GeneralNameHelper.cs#L47
Dereference of a possibly null reference.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/GeneralNameHelper.cs#L36
Possible null reference argument for parameter 'definition' in 'string ClassNameHelper.GetClassNameForSchemaDefinition(JsonSchema definition)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L67
Dereference of a possibly null reference.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L66
Converting null literal or possible null value to non-nullable type.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L66
Dereference of a possibly null reference.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L43
Dereference of a possibly null reference.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L42
Converting null literal or possible null value to non-nullable type.
Dotnet build (ubuntu-latest): tests/SkipTestLogger/SkipTestLogger.cs#L16
Nullability of reference types in type of parameter 'parameters' of 'void SkipTestLogger.Initialize(TestLoggerEvents events, Dictionary<string, string> parameters)' doesn't match implicitly implemented member 'void ITestLoggerWithParameters.Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/ClientSetGenerator.cs#L74
Possible null reference argument for parameter 'key' in 'OpenApiOperationDescription[] Dictionary<string, OpenApiOperationDescription[]>.this[string key]'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/ClientSetGenerator.cs#L66
Converting null literal or possible null value to non-nullable type.
Dotnet build (windows-latest): src/LibKubernetesGenerator/ClientSetGenerator.cs#L57
Argument of type 'IDictionary<string, object?>' cannot be used for parameter 'extensionData' of type 'IDictionary<string, object>' in 'bool ClientSetGenerator.HasKubernetesAction(IDictionary<string, object> extensionData)' due to differences in the nullability of reference types.
Dotnet build (windows-latest): src/LibKubernetesGenerator/ClientSetGenerator.cs#L57
Possible null reference argument for parameter 'extensionData' in 'bool ClientSetGenerator.HasKubernetesAction(IDictionary<string, object> extensionData)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L43
Dereference of a possibly null reference.
Dotnet build (windows-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L42
Converting null literal or possible null value to non-nullable type.
Dotnet build (windows-latest): src/LibKubernetesGenerator/GeneralNameHelper.cs#L48
Possible null reference argument for parameter 'definition' in 'string ClassNameHelper.GetClassNameForSchemaDefinition(JsonSchema definition)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/GeneralNameHelper.cs#L47
Dereference of a possibly null reference.
Dotnet build (windows-latest): src/LibKubernetesGenerator/GeneralNameHelper.cs#L36
Possible null reference argument for parameter 'definition' in 'string ClassNameHelper.GetClassNameForSchemaDefinition(JsonSchema definition)'.
Dotnet build (windows-latest): tests/SkipTestLogger/SkipTestLogger.cs#L16
Nullability of reference types in type of parameter 'parameters' of 'void SkipTestLogger.Initialize(TestLoggerEvents events, Dictionary<string, string> parameters)' doesn't match implicitly implemented member 'void ITestLoggerWithParameters.Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters)'.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CertificatesV1OperationsExtensions.g.cs#L205
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CertificatesV1OperationsExtensions.g.cs#L205
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CertificatesV1OperationsExtensions.g.cs#L205
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/Models_V1Status.g.cs#L75
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/Models_V1Status.g.cs#L68
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/Models_V1Status.g.cs#L60
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/Models_V1Status.g.cs#L53
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/Models_V1Status.g.cs#L47
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/Models_V1Status.g.cs#L38
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/KubernetesClient.Aot/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/Models_V1Status.g.cs#L24
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L315
Possible null reference return.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L302
Possible null reference return.
e2e: src/LibKubernetesGenerator/GeneralNameHelper.cs#L48
Possible null reference argument for parameter 'definition' in 'string ClassNameHelper.GetClassNameForSchemaDefinition(JsonSchema definition)'.
e2e: src/LibKubernetesGenerator/GeneralNameHelper.cs#L47
Dereference of a possibly null reference.
e2e: src/LibKubernetesGenerator/GeneralNameHelper.cs#L36
Possible null reference argument for parameter 'definition' in 'string ClassNameHelper.GetClassNameForSchemaDefinition(JsonSchema definition)'.
e2e: src/LibKubernetesGenerator/ClassNameHelper.cs#L67
Dereference of a possibly null reference.
e2e: src/LibKubernetesGenerator/ClassNameHelper.cs#L66
Converting null literal or possible null value to non-nullable type.
e2e: src/LibKubernetesGenerator/ClassNameHelper.cs#L66
Dereference of a possibly null reference.
e2e: src/LibKubernetesGenerator/ClassNameHelper.cs#L43
Dereference of a possibly null reference.
e2e: src/LibKubernetesGenerator/ClassNameHelper.cs#L42
Converting null literal or possible null value to non-nullable type.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/MetaHelper.cs#L29
Dereference of a possibly null reference.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/MetaHelper.cs#L24
Possible null reference return.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/MetaHelper.cs#L22
Dereference of a possibly null reference.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/MetaHelper.cs#L21
Converting null literal or possible null value to non-nullable type.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/MetaHelper.cs#L21
Dereference of a possibly null reference.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/PluralHelper.cs#L40
Possible null reference return.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/StringHelpers.cs#L41
Converting null literal or possible null value to non-nullable type.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/TypeHelper.cs#L315
Possible null reference return.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/TypeHelper.cs#L302
Possible null reference return.
Dotnet build (macOS-latest): tests/SkipTestLogger/SkipTestLogger.cs#L16
Nullability of reference types in type of parameter 'parameters' of 'void SkipTestLogger.Initialize(TestLoggerEvents events, Dictionary<string, string> parameters)' doesn't match implicitly implemented member 'void ITestLoggerWithParameters.Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters)'.

Artifacts

Produced during runtime
Name Size Digest
test-results-macOS-latest
6.06 MB
sha256:3f3ce35aabca2ea6f94ea409c2257654cd05b9c2d0ca042143a495b6ea62f4d0
test-results-ubuntu-latest
8.29 MB
sha256:e819f31b6a2bf417c24d72cf6eab5232c7249c555e713364fa22715c96f1685c
test-results-windows-latest
9.52 MB
sha256:e3f219101fba528fd72710d6d2496f024e08627599e14ce4c5066ab5fb8e90ad