Skip to content

Commit c51f3eb

Browse files
committed
fix: Fixed missing main constructor with authorization in cli.
1 parent 5cea980 commit c51f3eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libs/OpenApiGenerator.Cli/Commands/GenerateCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ private static async Task HandleAsync(
139139
.Select(x => Sources.Method(x)))
140140
.Concat(data.Authorizations
141141
.Select(x => Sources.Authorization(x)))
142+
.Concat([Sources.MainAuthorizationConstructor(data.Authorizations)])
142143
.Concat(data.AnyOfs
143144
.SelectMany(x => new [] { Sources.AnyOf(x), Sources.AnyOfJsonConverter(x), Sources.AnyOfJsonConverterFactory(x) }))
144145
.Concat([Sources.JsonSerializerContext(data.Converters, data.Types)])

0 commit comments

Comments
 (0)