Skip to content

Commit 0ce161d

Browse files
Refactors OpenAPI spec generation. Closes #759 (#763)
1 parent 4434b84 commit 0ce161d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dev-proxy-plugins/RequestLogs/OpenApiSpecGeneratorPlugin.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,7 @@ private OpenApiPathItem GetOpenApiPathItem(SessionEventArgs session)
456456
var response = session.HttpClient.Response;
457457

458458
var resource = GetLastNonTokenSegment(request.RequestUri.Segments);
459-
var path = new OpenApiPathItem
460-
{
461-
Description = $"Provides operations to manage {resource}"
462-
};
459+
var path = new OpenApiPathItem();
463460

464461
var method = request.Method.ToUpperInvariant() switch
465462
{
@@ -475,7 +472,7 @@ private OpenApiPathItem GetOpenApiPathItem(SessionEventArgs session)
475472
};
476473
var operation = new OpenApiOperation
477474
{
478-
Summary = $"{method} {resource}",
475+
Description = $"{method} {resource}",
479476
// will be replaced later after the path has been parametrized
480477
OperationId = $"{method}.{resource}"
481478
};

0 commit comments

Comments
 (0)