feat: enable null reference type support #4770
Annotations
10 errors
Build projects:
src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L223
Possible null reference argument for parameter 'value' in 'void OpenApiWriterBase.WriteValue(object value)'.
|
Build projects:
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 projects:
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 projects:
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 projects:
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 projects:
src/Microsoft.OpenApi/Models/References/OpenApiSchemaReference.cs#L158
Possible null reference return.
|
Build projects:
src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L245
Possible null reference assignment.
|
Build projects:
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 projects:
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 projects:
src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs#L223
Possible null reference argument for parameter 'value' in 'void OpenApiWriterBase.WriteValue(object value)'.
|
Loading