Skip to content

Commit 1bbc943

Browse files
authored
Update content type in ControllerActionsFactory
1 parent 8db185e commit 1bbc943

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Simplify.Web.Swagger/ControllerActionsFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private static OpenApiRequestBody CreateRequestBody(Type controllerType, Documen
137137

138138
request.Content = new Dictionary<string, OpenApiMediaType>
139139
{
140-
["application/json"] = new() { Schema = context.SchemaGenerator.GenerateSchema(item.Model, context.SchemaRepository) }
140+
[item.ContentType] = new() { Schema = context.SchemaGenerator.GenerateSchema(item.Model, context.SchemaRepository) }
141141
};
142142

143143
return request;
@@ -164,4 +164,4 @@ private static OpenApiResponse CreateResponse(ProducesResponseAttribute produces
164164

165165
return response;
166166
}
167-
}
167+
}

0 commit comments

Comments
 (0)