Skip to content

Commit

Permalink
fix: Fixed issue with incorrect request type names.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed May 21, 2024
1 parent 6befdfc commit c21dceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/OpenApiGenerator.Core/Models/EndPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static EndPoint FromSchema(
JsonSerializerContext: settings.JsonSerializerContext,
HttpMethod: operation.Key,
Summary: operation.Value.Summary?.Replace("\n", string.Empty) ?? string.Empty,
RequestType: requestSchema?.Reference?.Id ?? string.Empty,
RequestType: ModelData.FromKey(requestSchema?.Reference?.Id ?? string.Empty, settings).Name,
ResponseType: response?
.Content.Values.FirstOrDefault()?.Schema?.Reference?.Id ?? string.Empty);

Expand Down

0 comments on commit c21dceb

Please sign in to comment.