diff --git a/src/libs/OpenApiGenerator.Core/Models/EndPoint.cs b/src/libs/OpenApiGenerator.Core/Models/EndPoint.cs index 8fdcd386af..36eaa29afb 100644 --- a/src/libs/OpenApiGenerator.Core/Models/EndPoint.cs +++ b/src/libs/OpenApiGenerator.Core/Models/EndPoint.cs @@ -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);