This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.NSwag.
Summary
Settings to further control the C# generation process
- Assembly
- Cake
.NSwag .dll - Namespace
- Cake
.NSwag .Settings - Base Types
-
- Object
- GeneratorSettings
graph BT
Type-->Base0["GeneratorSettings"]
click Base0 "/api/Cake.NSwag.Settings/GeneratorSettings"
Base0-->Base1["Object"]
Type["CSharpGeneratorSettings"]
class Type type-node
Syntax
public class CSharpGeneratorSettings : GeneratorSettings
Properties
| Name | Value | Summary |
|---|---|---|
| BaseClass | string |
Gets or sets the base class to use for the generated client
|
| ClientSettings | Client |
Container for operation-specific settings used when generating client libraries.
Inherited from GeneratorSettings
|
| ControllerSettings | Controller |
Container for operation-specific settings used when generating controller code.
Inherited from GeneratorSettings
|
| GenerateInterfaces | bool |
Gets or sets a value indicating whether to generate interfaces for the client code.
|
| JsonSettings | Json |
Container for operation-specific settings used when generating JSON schemas, including Swagger specifications.
Inherited from GeneratorSettings
|
| Namespaces | List |
Gets or sets a collection of additional namespace usages
|
Methods
| Name | Value | Summary |
|---|---|---|
| WithSettings |
GeneratorSettings |
Specifies operation-specific settings for generating client code.
Inherited from GeneratorSettings
|
| WithSettings |
GeneratorSettings |
Specificies operation-specific settings for generating controller code
Inherited from GeneratorSettings
|
| WithSettings |
GeneratorSettings |
Specifies operation-specific settings for generating JSON schemas, including Swagger specifications.
Inherited from GeneratorSettings
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| AddNamespace |
C |
Adds an additional namespace usage
Requires the Cake.NSwag addin
|
| Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
| EnableInterfaces |
C |
Enables generating interfaces when generating the client
Requires the Cake.NSwag addin
|
| IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
| NotNull |
void |
Throws an exception if the specified parameter's value is null.
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
| SetBaseClass |
C |
Sets the base class for the generated code
Requires the Cake.NSwag addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
