Skip to content

Enable nullable reference types for generated models #2031

Enable nullable reference types for generated models

Enable nullable reference types for generated models #2031

Re-run triggered December 26, 2025 08:38
Status Success
Total duration 17m 47s
Artifacts 3

buildtest.yaml

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

Annotations

60 warnings
MSBuild build: src/LibKubernetesGenerator/TypeHelper.cs#L160
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
MSBuild build: src/LibKubernetesGenerator/TypeHelper.cs#L152
Possible null reference argument for parameter 'schema' in 'string TypeHelper.GetDotNetType(JsonSchema schema, JsonSchemaProperty parent, bool isCollectionItem = false)'.
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/TypeHelper.cs#L138
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
MSBuild build: src/LibKubernetesGenerator/TypeHelper.cs#L134
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
MSBuild build: src/LibKubernetesGenerator/TypeHelper.cs#L117
Possible null reference argument for parameter 'schema' in 'string TypeHelper.GetDotNetType(JsonSchema schema, JsonSchemaProperty parent, bool isCollectionItem = false)'.
MSBuild build: src/LibKubernetesGenerator/GeneralNameHelper.cs#L48
Possible null reference argument for parameter 'definition' in 'string ClassNameHelper.GetClassNameForSchemaDefinition(JsonSchema definition)'.
MSBuild build: src/LibKubernetesGenerator/GeneralNameHelper.cs#L47
Dereference of a possibly null reference.
MSBuild build: src/LibKubernetesGenerator/GeneralNameHelper.cs#L36
Possible null reference argument for parameter 'definition' in 'string ClassNameHelper.GetClassNameForSchemaDefinition(JsonSchema definition)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L305
Possible null reference return.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L213
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L178
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L173
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L160
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L152
Possible null reference argument for parameter 'schema' in 'string TypeHelper.GetDotNetType(JsonSchema schema, JsonSchemaProperty parent, bool isCollectionItem = false)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L138
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L134
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (ubuntu-latest): src/LibKubernetesGenerator/TypeHelper.cs#L117
Possible null reference argument for parameter 'schema' in 'string TypeHelper.GetDotNetType(JsonSchema schema, JsonSchemaProperty parent, bool isCollectionItem = false)'.
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/TypeHelper.cs#L305
Possible null reference return.
Dotnet build (windows-latest): src/LibKubernetesGenerator/TypeHelper.cs#L213
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/TypeHelper.cs#L178
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/TypeHelper.cs#L173
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/TypeHelper.cs#L160
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/TypeHelper.cs#L152
Possible null reference argument for parameter 'schema' in 'string TypeHelper.GetDotNetType(JsonSchema schema, JsonSchemaProperty parent, bool isCollectionItem = false)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/TypeHelper.cs#L138
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/TypeHelper.cs#L134
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (windows-latest): src/LibKubernetesGenerator/TypeHelper.cs#L117
Possible null reference argument for parameter 'schema' in 'string TypeHelper.GetDotNetType(JsonSchema schema, JsonSchemaProperty parent, bool isCollectionItem = false)'.
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#L318
Possible null reference return.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L305
Possible null reference return.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L213
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L178
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L173
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L160
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L152
Possible null reference argument for parameter 'schema' in 'string TypeHelper.GetDotNetType(JsonSchema schema, JsonSchemaProperty parent, bool isCollectionItem = false)'.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L138
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L134
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
e2e: src/LibKubernetesGenerator/TypeHelper.cs#L117
Possible null reference argument for parameter 'schema' in 'string TypeHelper.GetDotNetType(JsonSchema schema, JsonSchemaProperty parent, bool isCollectionItem = false)'.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/ClientSetGenerator.cs#L57
Possible null reference argument for parameter 'extensionData' in 'bool ClientSetGenerator.HasKubernetesAction(IDictionary<string, object> extensionData)'.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/TypeHelper.cs#L138
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/TypeHelper.cs#L134
Possible null reference argument for parameter 'format' in 'string TypeHelper.GetDotNetType(JsonObjectType jsonType, string name, bool required, string format)'.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/TypeHelper.cs#L117
Possible null reference argument for parameter 'schema' in 'string TypeHelper.GetDotNetType(JsonSchema schema, JsonSchemaProperty parent, bool isCollectionItem = false)'.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L67
Dereference of a possibly null reference.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L66
Converting null literal or possible null value to non-nullable type.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L66
Dereference of a possibly null reference.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L43
Dereference of a possibly null reference.
Dotnet build (macOS-latest): src/LibKubernetesGenerator/ClassNameHelper.cs#L42
Converting null literal or possible null value to non-nullable type.
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.05 MB
sha256:a1c305643b07919d83ef1ed12d3d9f5f3e5dbfabd7ac07f8c74a4b7878661e31
test-results-ubuntu-latest
8.29 MB
sha256:be63a0984a993827b88fc2703a746bbc29226f83004ad39dbac2f635c7d4bb4a
test-results-windows-latest
9.52 MB
sha256:a3d19bf8504a0992ddd5d3dff5bdc58da7ddbebcd6a6c7934e6c68a7423c8e5f