@@ -37,13 +37,13 @@ public static Settings GetSettings(
3737 UseExperimentalAttributes : options . GetEnumGlobalOption < SdkFeatureUsage > ( nameof ( Settings . UseExperimentalAttributes ) , prefix ) ,
3838 UseSetsRequiredMembersAttributes : options . GetEnumGlobalOption < SdkFeatureUsage > ( nameof ( Settings . UseSetsRequiredMembersAttributes ) , prefix ) ,
3939
40- GenerateConstructors : options . GetBoolGlobalOption ( nameof ( Settings . GenerateConstructors ) , prefix ) ,
41- GroupByTags : options . GetBoolGlobalOption ( nameof ( Settings . GroupByTags ) , prefix , defaultValue : true ) ,
42- GenerateMethods : options . GetBoolGlobalOption ( nameof ( Settings . GenerateMethods ) , prefix ) ,
40+ GenerateConstructors : options . GetBoolGlobalOption ( nameof ( Settings . GenerateConstructors ) , prefix , defaultValue : Settings . Default . GenerateConstructors ) ,
41+ GroupByTags : options . GetBoolGlobalOption ( nameof ( Settings . GroupByTags ) , prefix , defaultValue : Settings . Default . GroupByTags ) ,
42+ GenerateMethods : options . GetBoolGlobalOption ( nameof ( Settings . GenerateMethods ) , prefix , defaultValue : Settings . Default . GenerateMethods ) ,
4343 MethodNamingConvention : options . GetEnumGlobalOption < MethodNamingConvention > ( nameof ( Settings . MethodNamingConvention ) , prefix ) ,
4444 MethodNamingConventionFallback : options . GetEnumGlobalOption ( nameof ( Settings . MethodNamingConventionFallback ) , prefix , defaultValue : MethodNamingConvention . MethodAndPath ) ,
45- GenerateMethodsAsHttpClientExtensions : options . GetBoolGlobalOption ( nameof ( Settings . GenerateMethodsAsHttpClientExtensions ) , prefix ) ,
46- GenerateMethodsUsingSystemNetHttpJson : options . GetBoolGlobalOption ( nameof ( Settings . GenerateMethodsUsingSystemNetHttpJson ) , prefix ) ,
45+ GenerateMethodsAsHttpClientExtensions : options . GetBoolGlobalOption ( nameof ( Settings . GenerateMethodsAsHttpClientExtensions ) , prefix , defaultValue : Settings . Default . GenerateMethodsAsHttpClientExtensions ) ,
46+ GenerateMethodsUsingSystemNetHttpJson : options . GetBoolGlobalOption ( nameof ( Settings . GenerateMethodsUsingSystemNetHttpJson ) , prefix , defaultValue : Settings . Default . GenerateMethodsUsingSystemNetHttpJson ) ,
4747 IncludeOperationIds : ( options . GetGlobalOption ( nameof ( Settings . IncludeOperationIds ) , prefix ) ? . Split ( ';' ) ??
4848 [ ] ) . ToImmutableArray ( ) ,
4949 ExcludeOperationIds : ( options . GetGlobalOption ( nameof ( Settings . ExcludeOperationIds ) , prefix ) ? . Split ( ';' ) ??
@@ -52,28 +52,28 @@ public static Settings GetSettings(
5252 [ ] ) . ToImmutableArray ( ) ,
5353 ExcludeTags : ( options . GetGlobalOption ( nameof ( Settings . ExcludeTags ) , prefix ) ? . Split ( ';' ) ??
5454 [ ] ) . ToImmutableArray ( ) ,
55- ExcludeDeprecatedOperations : options . GetBoolGlobalOption ( nameof ( Settings . ExcludeDeprecatedOperations ) , prefix ) ,
55+ ExcludeDeprecatedOperations : options . GetBoolGlobalOption ( nameof ( Settings . ExcludeDeprecatedOperations ) , prefix , defaultValue : Settings . Default . ExcludeDeprecatedOperations ) ,
5656 JsonSerializerContext : options . GetGlobalOption ( nameof ( Settings . JsonSerializerContext ) , prefix ) ?? string . Empty ,
57- GenerateJsonSerializerContextTypes : options . GetBoolGlobalOption ( nameof ( Settings . GenerateJsonSerializerContextTypes ) , prefix ) ,
57+ GenerateJsonSerializerContextTypes : options . GetBoolGlobalOption ( nameof ( Settings . GenerateJsonSerializerContextTypes ) , prefix , defaultValue : Settings . Default . GenerateJsonSerializerContextTypes ) ,
5858 ComputeDiscriminators : options . GetBoolGlobalOption ( nameof ( Settings . ComputeDiscriminators ) , prefix , defaultValue : Settings . Default . ComputeDiscriminators ) ,
5959 AddMissingPathParameters : options . GetBoolGlobalOption ( nameof ( Settings . AddMissingPathParameters ) , prefix , defaultValue : Settings . Default . AddMissingPathParameters ) ,
6060
61- GenerateModels : options . GetBoolGlobalOption ( nameof ( Settings . GenerateModels ) , prefix ) ,
62- GenerateModelValidationMethods : options . GetBoolGlobalOption ( nameof ( Settings . GenerateModelValidationMethods ) , prefix ) ,
63- ValidateAnyOfs : options . GetBoolGlobalOption ( nameof ( Settings . ValidateAnyOfs ) , prefix ) ,
61+ GenerateModels : options . GetBoolGlobalOption ( nameof ( Settings . GenerateModels ) , prefix , defaultValue : Settings . Default . GenerateModels ) ,
62+ GenerateModelValidationMethods : options . GetBoolGlobalOption ( nameof ( Settings . GenerateModelValidationMethods ) , prefix , defaultValue : Settings . Default . GenerateModelValidationMethods ) ,
63+ ValidateAnyOfs : options . GetBoolGlobalOption ( nameof ( Settings . ValidateAnyOfs ) , prefix , defaultValue : Settings . Default . ValidateAnyOfs ) ,
6464 ModelStyle : options . GetEnumGlobalOption < ModelStyle > ( nameof ( Settings . ModelStyle ) , prefix ) ,
6565 IncludeModels : ( options . GetGlobalOption ( nameof ( Settings . IncludeModels ) , prefix ) ? . Split ( ';' ) ??
6666 [ ] ) . ToImmutableArray ( ) ,
6767 ExcludeModels : ( options . GetGlobalOption ( nameof ( Settings . ExcludeModels ) , prefix ) ? . Split ( ';' ) ??
6868 [ ] ) . ToImmutableArray ( ) ,
6969
70- GeneratePolyfills : options . GetBoolGlobalOption ( nameof ( Settings . GeneratePolyfills ) , prefix , defaultValue : true ) ,
71- GenerateExceptions : options . GetBoolGlobalOption ( nameof ( Settings . GenerateExceptions ) , prefix , defaultValue : true ) ,
70+ GeneratePolyfills : options . GetBoolGlobalOption ( nameof ( Settings . GeneratePolyfills ) , prefix , defaultValue : Settings . Default . GeneratePolyfills ) ,
71+ GenerateExceptions : options . GetBoolGlobalOption ( nameof ( Settings . GenerateExceptions ) , prefix , defaultValue : Settings . Default . GenerateExceptions ) ,
7272
73- IgnoreOpenApiErrors : options . GetBoolGlobalOption ( nameof ( Settings . IgnoreOpenApiErrors ) , prefix ) ,
74- IgnoreOpenApiWarnings : options . GetBoolGlobalOption ( nameof ( Settings . IgnoreOpenApiWarnings ) , prefix , defaultValue : true ) ,
73+ IgnoreOpenApiErrors : options . GetBoolGlobalOption ( nameof ( Settings . IgnoreOpenApiErrors ) , prefix , defaultValue : Settings . Default . IgnoreOpenApiErrors ) ,
74+ IgnoreOpenApiWarnings : options . GetBoolGlobalOption ( nameof ( Settings . IgnoreOpenApiWarnings ) , prefix , defaultValue : Settings . Default . IgnoreOpenApiWarnings ) ,
7575
76- GenerateSdk : options . GetBoolGlobalOption ( nameof ( Settings . GenerateSdk ) , prefix , defaultValue : true ) ,
76+ GenerateSdk : options . GetBoolGlobalOption ( nameof ( Settings . GenerateSdk ) , prefix , defaultValue : Settings . Default . GenerateSdk ) ,
7777 FromCli : false ) ;
7878
7979 string ? GetOptionFromAdditionalText ( string name )
0 commit comments