Skip to content

Commit 6abb48f

Browse files
Add appropriate using
1 parent 8314d41 commit 6abb48f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/openapi-generator/src/main/resources/aspnetcore/3.0/controller.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ using Microsoft.AspNetCore.Http;
1313
using Swashbuckle.AspNetCore.Annotations;
1414
using Swashbuckle.AspNetCore.SwaggerGen;
1515
{{/useSwashbuckle}}
16-
{{^isLibrary}}
16+
{{#generateBody}}
1717
{{#useNewtonsoft}}
1818
using Newtonsoft.Json;
1919
{{/useNewtonsoft}}
2020
{{^useNewtonsoft}}
2121
using System.Text.Json;
2222
{{/useNewtonsoft}}
23-
{{/isLibrary}}
23+
{{/generateBody}}
2424
using {{packageName}}.Attributes;
2525
using {{modelPackage}};
2626

0 commit comments

Comments
 (0)