@@ -132,13 +132,13 @@ private static void ApplyGeneratorOverrides(
132
132
{
133
133
if ( settings is BaseServerCommandSettings serverCommandSettings )
134
134
{
135
- if ( serverCommandSettings . AspNetOutputType . IsSet ||
135
+ if ( serverCommandSettings . AspNetOutputType . IsSet &&
136
136
serverCommandSettings . AspNetOutputType . Value != apiOptions . Generator . AspNetOutputType )
137
137
{
138
138
apiOptions . Generator . AspNetOutputType = serverCommandSettings . AspNetOutputType . Value ;
139
139
}
140
140
141
- if ( serverCommandSettings . SwaggerThemeMode . IsSet ||
141
+ if ( serverCommandSettings . SwaggerThemeMode . IsSet &&
142
142
serverCommandSettings . SwaggerThemeMode . Value != apiOptions . Generator . SwaggerThemeMode )
143
143
{
144
144
apiOptions . Generator . SwaggerThemeMode = serverCommandSettings . SwaggerThemeMode . Value ;
@@ -149,10 +149,7 @@ private static void ApplyGeneratorOverrides(
149
149
apiOptions . Generator . Response . UseProblemDetailsAsDefaultBody = serverCommandSettings . UseProblemDetailsAsDefaultResponseBody ;
150
150
}
151
151
152
- if ( serverCommandSettings . ProjectPrefixName is not null )
153
- {
154
- apiOptions . Generator . ProjectName = serverCommandSettings . ProjectPrefixName ;
155
- }
152
+ apiOptions . Generator . ProjectName = serverCommandSettings . ProjectPrefixName ;
156
153
157
154
if ( serverCommandSettings . EndpointsLocation is not null &&
158
155
serverCommandSettings . EndpointsLocation . IsSet )
@@ -215,10 +212,7 @@ private static void ApplyGeneratorOverrides(
215
212
apiOptions . Generator . Response . UseProblemDetailsAsDefaultBody = clientApiCommandSettings . UseProblemDetailsAsDefaultResponseBody ;
216
213
}
217
214
218
- if ( clientApiCommandSettings . ProjectPrefixName is not null )
219
- {
220
- apiOptions . Generator . ProjectName = clientApiCommandSettings . ProjectPrefixName ;
221
- }
215
+ apiOptions . Generator . ProjectName = clientApiCommandSettings . ProjectPrefixName ;
222
216
223
217
if ( clientApiCommandSettings . RemoveNamespaceGroupSeparatorInGlobalUsings )
224
218
{
0 commit comments