Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
fix(converter): handle security schemas according to spec (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
derevnjuk authored Mar 10, 2020
1 parent 2e0e548 commit 8be6a47
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"dependencies": {
"@neuralegion/openapi-sampler": "^0.7.2",
"@types/har-format": "^1.2.4",
"@types/swagger-schema-official": "^2.0.18",
"@types/swagger-schema-official": "^2.0.20",
"js-yaml": "^3.13.1",
"url-template": "^2.0.8",
"jstoxml": "^1.6.0"
"jstoxml": "^1.6.1"
},
"typings": "./src/index.d.ts",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ var getHeadersArray = function(swagger, path, method) {
let authType = secDefinition.type.toLowerCase()
switch (authType) {
case 'http':
let authScheme = secDefinition.toLowerCase()
let authScheme = secDefinition.scheme.toLowerCase()
switch (authScheme) {
case 'bearer':
oauthDef = secScheme
Expand Down

0 comments on commit 8be6a47

Please sign in to comment.