Skip to content

Commit

Permalink
type and scheme are not arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcelhaney committed Apr 18, 2024
1 parent 4a12095 commit 095eb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typescript-generator/operation-type-coder.js
Expand Up @@ -80,7 +80,7 @@ export class OperationTypeCoder extends TypeCoder {
userType() {
if (
this.securitySchemes.some(
({ scheme, type }) => type.includes("http") && scheme.includes("basic"),
({ scheme, type }) => type === "http" && scheme === "basic",
)
) {
return "{username?: string, password?: string}";
Expand Down

0 comments on commit 095eb99

Please sign in to comment.