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