Skip to content

Commit 269c0d5

Browse files
committed
chore: additional NRT fixes
1 parent b15301d commit 269c0d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Microsoft.OpenApi.OData.Reader/Operation/EntitySetPostOperationHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ protected override void AppendCustomParameters(OpenApiOperation operation)
136136
/// Get the entity content description.
137137
/// </summary>
138138
/// <returns>The entity content description.</returns>
139-
private IDictionary<string, OpenApiMediaType?> GetContentDescription()
139+
private IDictionary<string, OpenApiMediaType> GetContentDescription()
140140
{
141141
var schema = GetEntitySchema();
142-
var content = new Dictionary<string, OpenApiMediaType?>();
142+
var content = new Dictionary<string, OpenApiMediaType>();
143143

144144
if (EntitySet is {EntityType.HasStream: true})
145145
{
@@ -148,7 +148,7 @@ protected override void AppendCustomParameters(OpenApiOperation operation)
148148
{
149149
foreach (string item in mediaTypes)
150150
{
151-
content.Add(item, null);
151+
content.Add(item, new());
152152
}
153153
}
154154
else

0 commit comments

Comments
 (0)