Skip to content

Commit

Permalink
fix: Fixed invalid generation of authorizations for models only.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Jun 27, 2024
1 parent dbd26d0 commit b5d2cf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/OpenApiGenerator.Core/Generation/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ .. includedTags.Select(x => PropertyData.Default with
: [],
AnyOfs: anyOfDatas.ToImmutableArray(),
Types: types,
Authorizations: authorizations.ToImmutableArray(),
Authorizations: settings.GenerateSdk || settings.GenerateConstructors
? authorizations.ToImmutableArray()
: [],
Converters: new EndPoint(
Id: "Converters",
Namespace: settings.Namespace,
Expand Down

0 comments on commit b5d2cf0

Please sign in to comment.