Skip to content

feat: enable null reference type support #1593

feat: enable null reference type support

feat: enable null reference type support #1593

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

sonarcloud.yml

on: pull_request
check if SONAR_TOKEN is set in github secrets
0s
check if SONAR_TOKEN is set in github secrets
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 10 warnings
Build: 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?)
Build: 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?)
Build: 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?)
Build: 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?)
Build: 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?)
Build: 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?)
Build: 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?)
Build: 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?)
Build
Process completed with exit code 1.
Build: src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L223
Possible null reference argument for parameter 'value' in 'void OpenApiWriterBase.WriteValue(object value)'.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L245
Possible null reference assignment.
Build: 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)'.
Build: 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>>'.
Build: src/Microsoft.OpenApi/Models/OpenApiRequestBody.cs#L139
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
Build: src/Microsoft.OpenApi/Reader/V2/OpenApiSecuritySchemeDeserializer.cs#L110
Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
Build: src/Microsoft.OpenApi/Writers/OpenApiYamlWriter.cs#L76
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
Build: src/Microsoft.OpenApi/Extensions/OpenApiSerializableExtensions.cs#L28
All 'SerializeAsJsonAsync' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)
Build: src/Microsoft.OpenApi/Extensions/OpenApiSerializableExtensions.cs#L42
All 'SerializeAsYamlAsync' method overloads should be adjacent. (https://rules.sonarsource.com/csharp/RSPEC-4136)