Skip to content

Commit 978eea5

Browse files
committed
More fixes
1 parent 39840ae commit 978eea5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ ClassDeclarationSyntax baseController
126126
.AddMethod($"GetFull", Accessibility.Public)
127127
.AddParameter("Guid", "id")
128128
.AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetFull}\")]")
129+
.AddAttribute($"Microsoft.AspNetCore.Mvc.Produces(type: typeof(object))")
129130
.MakeAsync()
130131
.WithReturnTypeTask("Microsoft.AspNetCore.Mvc.IActionResult")
131132
.WithBody(x =>
@@ -139,6 +140,7 @@ ClassDeclarationSyntax baseController
139140
.AddMethod($"GetAllFull", Accessibility.Public)
140141
.MakeAsync()
141142
.AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetAllFull}\")]")
143+
.AddAttribute($"Microsoft.AspNetCore.Mvc.Produces(type: typeof(object))")
142144
.WithReturnTypeTask("Microsoft.AspNetCore.Mvc.IActionResult")
143145
.WithBody(x =>
144146
{

0 commit comments

Comments
 (0)