Interface ICodeGenerationConfiguration
Configuration for code generation behavior.
public interface ICodeGenerationConfiguration
Properties
CodeGeneratorSettings
Gets the NSwag code generator settings.
CodeGeneratorSettings? CodeGeneratorSettings { get; }
Property Value
CustomTemplateDirectory
Gets the custom template directory for NSwag code generation.
string? CustomTemplateDirectory { get; }
Property Value
GenerateClients
Gets a value indicating whether clients should be generated.
bool GenerateClients { get; }
Property Value
GenerateContracts
Gets a value indicating whether contracts should be generated.
bool GenerateContracts { get; }
Property Value
GenerateJsonSerializerContext
Gets a value indicating whether to generate JsonSerializerContext for AOT compilation.
bool GenerateJsonSerializerContext { get; }
Property Value
GenerateStatusCodeComments
Gets a value indicating whether status code comments should be generated.
bool GenerateStatusCodeComments { get; }
Property Value
GenerateXmlDocCodeComments
Gets a value indicating whether XML doc comments should be generated.
bool GenerateXmlDocCodeComments { get; }
Property Value
ImmutableRecords
Gets a value indicating whether to generate contracts as immutable records.
bool ImmutableRecords { get; }
Property Value
ParameterNameGenerator
Gets the parameter name generator.
IParameterNameGenerator? ParameterNameGenerator { get; }
Property Value
- IParameterNameGenerator
ResponseTypeOverride
Gets the dictionary of operation ids and a specific response type that they should use.
Dictionary<string, string> ResponseTypeOverride { get; }
Property Value
ReturnIApiResponse
Gets a value indicating whether to return IApiResponse objects.
bool ReturnIApiResponse { get; }
Property Value
ReturnIObservable
Gets a value indicating whether to return IObservable or Task.
bool ReturnIObservable { get; }
Property Value
TypeAccessibility
Gets the accessibility of generated types.
TypeAccessibility TypeAccessibility { get; }
Property Value
UseCancellationTokens
Gets a value indicating whether to use cancellation tokens.
bool UseCancellationTokens { get; }
Property Value
UsePolymorphicSerialization
Gets a value indicating whether to use polymorphic serialization.
bool UsePolymorphicSerialization { get; }