Skip to content

feat: enable null reference type support #5789

feat: enable null reference type support

feat: enable null reference type support #5789

Triggered via pull request February 21, 2025 15:10
Status Failure
Total duration 2m 17s
Artifacts

ci-cd.yml

on: pull_request
Continuous Integration
34s
Continuous Integration
Validate Project for Trimming
2m 4s
Validate Project for Trimming
Fit to window
Zoom out
Zoom in

Annotations

18 errors
Continuous Integration: src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L223
Possible null reference argument for parameter 'value' in 'void OpenApiWriterBase.WriteValue(object value)'.
Continuous Integration: src/Microsoft.OpenApi/Reader/V31/OpenApiSchemaDeserializer.cs#L364
Possible null reference argument for parameter 'openApiDocument' in 'Dictionary<string, ISet<string?>> ParseNode.CreateArrayMap<string?>(Func<ValueNode, OpenApiDocument, string?> map, OpenApiDocument openApiDocument)'.
Continuous Integration: src/Microsoft.OpenApi/Reader/V31/OpenApiSchemaDeserializer.cs#L364
Nullability of reference types in value of type 'Dictionary<string, ISet<string?>>' doesn't match target type 'IDictionary<string, ISet<string>>'.
Continuous Integration: src/Microsoft.OpenApi/MicrosoftExtensions/OpenApiReservedParameterExtension.cs#L48
'JsonNode' does not contain a definition for 'TryGetValue' and no accessible extension method 'TryGetValue' accepting a first argument of type 'JsonNode' could be found (are you missing a using directive or an assembly reference?)
Continuous Integration: src/Microsoft.OpenApi/MicrosoftExtensions/OpenApiPrimaryErrorMessageExtension.cs#L46
'JsonNode' does not contain a definition for 'TryGetValue' and no accessible extension method 'TryGetValue' accepting a first argument of type 'JsonNode' could be found (are you missing a using directive or an assembly reference?)
Continuous Integration: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L245
Possible null reference assignment.
Continuous Integration: src/Microsoft.OpenApi/MicrosoftExtensions/OpenApiReservedParameterExtension.cs#L48
'JsonNode' does not contain a definition for 'TryGetValue' and no accessible extension method 'TryGetValue' accepting a first argument of type 'JsonNode' could be found (are you missing a using directive or an assembly reference?)
Continuous Integration: src/Microsoft.OpenApi/MicrosoftExtensions/OpenApiPrimaryErrorMessageExtension.cs#L46
'JsonNode' does not contain a definition for 'TryGetValue' and no accessible extension method 'TryGetValue' accepting a first argument of type 'JsonNode' could be found (are you missing a using directive or an assembly reference?)
Continuous Integration: src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L223
Possible null reference argument for parameter 'value' in 'void OpenApiWriterBase.WriteValue(object value)'.
Validate Project for Trimming: src/Microsoft.OpenApi/MicrosoftExtensions/OpenApiReservedParameterExtension.cs#L48
'JsonNode' does not contain a definition for 'TryGetValue' and no accessible extension method 'TryGetValue' accepting a first argument of type 'JsonNode' could be found (are you missing a using directive or an assembly reference?)
Validate Project for Trimming: src/Microsoft.OpenApi/MicrosoftExtensions/OpenApiPrimaryErrorMessageExtension.cs#L46
'JsonNode' does not contain a definition for 'TryGetValue' and no accessible extension method 'TryGetValue' accepting a first argument of type 'JsonNode' could be found (are you missing a using directive or an assembly reference?)
Validate Project for Trimming: src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L223
Possible null reference argument for parameter 'value' in 'void OpenApiWriterBase.WriteValue(object value)'.
Validate Project for Trimming: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L245
Possible null reference assignment.
Validate Project for Trimming: src/Microsoft.OpenApi/Reader/V31/OpenApiSchemaDeserializer.cs#L364
Possible null reference argument for parameter 'openApiDocument' in 'Dictionary<string, ISet<string?>> ParseNode.CreateArrayMap<string?>(Func<ValueNode, OpenApiDocument, string?> map, OpenApiDocument openApiDocument)'.
Validate Project for Trimming: src/Microsoft.OpenApi/Reader/V31/OpenApiSchemaDeserializer.cs#L364
Nullability of reference types in value of type 'Dictionary<string, ISet<string?>>' doesn't match target type 'IDictionary<string, ISet<string>>'.
Validate Project for Trimming
Process completed with exit code 1.