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
Added feature to suppress the generation of the output of client classes and interfaces. (#4571)
* Added feature to suppress the generation of the output of client classes and interfaces.
* Added UI for SuppressClientClassesOutput and SuppressClientInterfacesOutput.
* Added documentation.
Copy file name to clipboardExpand all lines: src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs
+14
Original file line number
Diff line number
Diff line change
@@ -46,13 +46,27 @@ public bool GenerateClientClasses
46
46
set{Settings.GenerateClientClasses=value;}
47
47
}
48
48
49
+
[Argument(Name="SuppressClientClassesOutput",IsRequired=false,Description="Specifies whether generate output for client classes.")]
50
+
publicboolSuppressClientClassesOutput
51
+
{
52
+
get{returnSettings.SuppressClientClassesOutput;}
53
+
set{Settings.SuppressClientClassesOutput=value;}
54
+
}
55
+
49
56
[Argument(Name="GenerateClientInterfaces",IsRequired=false,Description="Specifies whether generate interfaces for the client classes.")]
50
57
publicboolGenerateClientInterfaces
51
58
{
52
59
get{returnSettings.GenerateClientInterfaces;}
53
60
set{Settings.GenerateClientInterfaces=value;}
54
61
}
55
62
63
+
[Argument(Name="SuppressClientInterfacesOutput",IsRequired=false,Description="Specifies whether generate output for interfaces for the client classes.")]
0 commit comments