Table of Contents

Interface ICodeGenerationConfiguration

Namespace
Refitter.Core
Assembly
Refitter.Core.dll

Configuration for code generation behavior.

public interface ICodeGenerationConfiguration

Properties

CodeGeneratorSettings

Gets the NSwag code generator settings.

CodeGeneratorSettings? CodeGeneratorSettings { get; }

Property Value

CodeGeneratorSettings

CustomTemplateDirectory

Gets the custom template directory for NSwag code generation.

string? CustomTemplateDirectory { get; }

Property Value

string

GenerateClients

Gets a value indicating whether clients should be generated.

bool GenerateClients { get; }

Property Value

bool

GenerateContracts

Gets a value indicating whether contracts should be generated.

bool GenerateContracts { get; }

Property Value

bool

GenerateJsonSerializerContext

Gets a value indicating whether to generate JsonSerializerContext for AOT compilation.

bool GenerateJsonSerializerContext { get; }

Property Value

bool

GenerateStatusCodeComments

Gets a value indicating whether status code comments should be generated.

bool GenerateStatusCodeComments { get; }

Property Value

bool

GenerateXmlDocCodeComments

Gets a value indicating whether XML doc comments should be generated.

bool GenerateXmlDocCodeComments { get; }

Property Value

bool

ImmutableRecords

Gets a value indicating whether to generate contracts as immutable records.

bool ImmutableRecords { get; }

Property Value

bool

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

Dictionary<string, string>

ReturnIApiResponse

Gets a value indicating whether to return IApiResponse objects.

bool ReturnIApiResponse { get; }

Property Value

bool

ReturnIObservable

Gets a value indicating whether to return IObservable or Task.

bool ReturnIObservable { get; }

Property Value

bool

TypeAccessibility

Gets the accessibility of generated types.

TypeAccessibility TypeAccessibility { get; }

Property Value

TypeAccessibility

UseCancellationTokens

Gets a value indicating whether to use cancellation tokens.

bool UseCancellationTokens { get; }

Property Value

bool

UsePolymorphicSerialization

Gets a value indicating whether to use polymorphic serialization.

bool UsePolymorphicSerialization { get; }

Property Value

bool