You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/AddOpenApiTests.CanInterceptAddOpenApi#OpenApiXmlCommentSupport.generated.verified.cs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -353,6 +353,13 @@ public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransform
353
353
}
354
354
}
355
355
}
356
+
// Applies `<returns>` on XML comments for operation with single response value.
Copy file name to clipboardExpand all lines: src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/AdditionalTextsTests.CanHandleXmlForSchemasInAdditionalTexts#OpenApiXmlCommentSupport.generated.verified.cs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -382,6 +382,13 @@ public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransform
382
382
}
383
383
}
384
384
}
385
+
// Applies `<returns>` on XML comments for operation with single response value.
Copy file name to clipboardExpand all lines: src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/CompletenessTests.SupportsAllXmlTagsOnSchemas#OpenApiXmlCommentSupport.generated.verified.cs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -472,6 +472,13 @@ public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransform
472
472
}
473
473
}
474
474
}
475
+
// Applies `<returns>` on XML comments for operation with single response value.
Copy file name to clipboardExpand all lines: src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/OperationTests.SupportsXmlCommentsOnOperationsFromControllers#OpenApiXmlCommentSupport.generated.verified.cs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -357,6 +357,13 @@ public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransform
357
357
}
358
358
}
359
359
}
360
+
// Applies `<returns>` on XML comments for operation with single response value.
Copy file name to clipboardExpand all lines: src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/OperationTests.SupportsXmlCommentsOnOperationsFromMinimalApis#OpenApiXmlCommentSupport.generated.verified.cs
cache.Add(@"M:RouteHandlerExtensionMethods.Get~System.String",newXmlComment(@"A summary of the action.",@"A description of the action.",null,null,null,false,null,null,null));
75
+
cache.Add(@"M:RouteHandlerExtensionMethods.Get~System.String",newXmlComment(@"A summary of the action.",@"A description of the action.",null,@"Returns the greeting.",null,false,null,null,null));
76
76
cache.Add(@"M:RouteHandlerExtensionMethods.Get2(System.String)~System.String",newXmlComment(null,null,null,null,null,false,null,[newXmlParameterComment(@"name",@"The name of the person.",null,false)],[newXmlResponseComment(@"200",@"Returns the greeting.",@"")]));
77
-
cache.Add(@"M:RouteHandlerExtensionMethods.Get3(System.String)~System.String",newXmlComment(null,null,null,null,null,false,null,[newXmlParameterComment(@"name",@"The name of the person.",@"Testy McTester",false)],null));
78
-
cache.Add(@"M:RouteHandlerExtensionMethods.Get4~Microsoft.AspNetCore.Http.HttpResults.NotFound{System.String}",newXmlComment(null,null,null,null,null,false,null,null,[newXmlResponseComment(@"404",@"Indicates that the value was not found.",@"")]));
79
-
cache.Add(@"M:RouteHandlerExtensionMethods.Get5~Microsoft.AspNetCore.Http.HttpResults.Results{Microsoft.AspNetCore.Http.HttpResults.NotFound{System.String},Microsoft.AspNetCore.Http.HttpResults.Ok{System.String},Microsoft.AspNetCore.Http.HttpResults.Created}",newXmlComment(null,null,null,null,null,false,null,null,[newXmlResponseComment(@"200",@"Indicates that the value is even.",@""),newXmlResponseComment(@"201",@"Indicates that the value is less than 50.",@""),newXmlResponseComment(@"404",@"Indicates that the value was not found.",@"")]));
77
+
cache.Add(@"M:RouteHandlerExtensionMethods.Get3(System.String)~System.String",newXmlComment(null,null,null,@"Returns the greeting.",null,false,null,[newXmlParameterComment(@"name",@"The name of the person.",@"Testy McTester",false)],null));
78
+
cache.Add(@"M:RouteHandlerExtensionMethods.Get4~Microsoft.AspNetCore.Http.HttpResults.NotFound{System.String}",newXmlComment(null,null,null,@"Indicates that the value was not found.",null,false,null,null,null));
79
+
cache.Add(@"M:RouteHandlerExtensionMethods.Get5~Microsoft.AspNetCore.Http.HttpResults.Results{Microsoft.AspNetCore.Http.HttpResults.NotFound{System.String},Microsoft.AspNetCore.Http.HttpResults.Ok{System.String},Microsoft.AspNetCore.Http.HttpResults.Created}",newXmlComment(null,null,null,@"This gets ignored.",null,false,null,null,[newXmlResponseComment(@"200",@"Indicates that the value is even.",@""),newXmlResponseComment(@"201",@"Indicates that the value is less than 50.",@""),newXmlResponseComment(@"404",@"Indicates that the value was not found.",@"")]));
80
80
cache.Add(@"M:RouteHandlerExtensionMethods.Post6(User)~Microsoft.AspNetCore.Http.IResult",newXmlComment(@"Creates a new user.",null,@"Sample request:
cache.Add(@"M:RouteHandlerExtensionMethods.Get11~System.Threading.Tasks.ValueTask",newXmlComment(@"A summary of Get11.",null,null,null,null,false,null,null,null));
91
91
cache.Add(@"M:RouteHandlerExtensionMethods.Get12~System.Threading.Tasks.Task{System.String}",newXmlComment(@"A summary of Get12.",null,null,null,null,false,null,null,null));
92
92
cache.Add(@"M:RouteHandlerExtensionMethods.Get13~System.Threading.Tasks.ValueTask{System.String}",newXmlComment(@"A summary of Get13.",null,null,null,null,false,null,null,null));
93
-
cache.Add(@"M:RouteHandlerExtensionMethods.Get14~System.Threading.Tasks.Task{Holder{System.String}}",newXmlComment(@"A summary of Get14.",null,null,null,null,false,null,null,null));
94
-
cache.Add(@"M:RouteHandlerExtensionMethods.Get15~System.Threading.Tasks.Task{Holder{System.String}}",newXmlComment(@"A summary of Get15.",null,null,null,null,false,null,null,null));
93
+
cache.Add(@"M:RouteHandlerExtensionMethods.Get14~System.Threading.Tasks.Task{Holder{System.String}}",newXmlComment(@"A summary of Get14.",null,null,@"Returns the greeting.",null,false,null,null,null));
94
+
cache.Add(@"M:RouteHandlerExtensionMethods.Get15~System.Threading.Tasks.Task{Holder{System.String}}",newXmlComment(@"A summary of Get15.",null,null,null,null,false,null,null,[newXmlResponseComment(@"200",@"Returns the greeting.",@"")]));
95
95
cache.Add(@"M:RouteHandlerExtensionMethods.Post16(Example)",newXmlComment(@"A summary of Post16.",null,null,null,null,false,null,null,null));
96
96
cache.Add(@"M:RouteHandlerExtensionMethods.Get17(System.Int32[])~System.Int32[][]",newXmlComment(@"A summary of Get17.",null,null,null,null,false,null,null,null));
97
97
@@ -375,6 +375,13 @@ public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransform
375
375
}
376
376
}
377
377
}
378
+
// Applies `<returns>` on XML comments for operation with single response value.
Copy file name to clipboardExpand all lines: src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/snapshots/SchemaTests.SupportsXmlCommentsOnSchemas#OpenApiXmlCommentSupport.generated.verified.cs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -383,6 +383,13 @@ public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransform
383
383
}
384
384
}
385
385
}
386
+
// Applies `<returns>` on XML comments for operation with single response value.
0 commit comments