Skip to content

Commit 69bfb75

Browse files
committed
Corrected rule
signed commit Signed-off-by: Arkadiusz biel <bielu@bielu.com.pl>
1 parent 5935b76 commit 69bfb75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ByteBard.AsyncAPI/Validation/Rules/AsyncApiSecuritySchemaRules.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private static bool IsFieldRequired(this AsyncApiSecurityScheme sc, string field
9696

9797
private static readonly Dictionary<string, Func<AsyncApiSecurityScheme, bool>> RequiredFieldsByType = new()
9898
{
99-
{ "name", sc => sc.Type is SecuritySchemeType.ApiKey },
99+
{ "name", sc => sc.Type is SecuritySchemeType.HttpApiKey },
100100
{ "in", sc => sc.Type is SecuritySchemeType.ApiKey or SecuritySchemeType.HttpApiKey },
101101
{ "scheme", sc => sc.Type is SecuritySchemeType.Http },
102102
{ "flows", sc => sc.Type is SecuritySchemeType.OAuth2 },

0 commit comments

Comments
 (0)