Skip to content

Commit

Permalink
fix: Fixed missing main constructor with authorization in cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Aug 24, 2024
1 parent 5cea980 commit c51f3eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libs/OpenApiGenerator.Cli/Commands/GenerateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ private static async Task HandleAsync(
.Select(x => Sources.Method(x)))
.Concat(data.Authorizations
.Select(x => Sources.Authorization(x)))
.Concat([Sources.MainAuthorizationConstructor(data.Authorizations)])
.Concat(data.AnyOfs
.SelectMany(x => new [] { Sources.AnyOf(x), Sources.AnyOfJsonConverter(x), Sources.AnyOfJsonConverterFactory(x) }))
.Concat([Sources.JsonSerializerContext(data.Converters, data.Types)])
Expand Down

0 comments on commit c51f3eb

Please sign in to comment.