express-jsdoc-swagger icon indicating copy to clipboard operation
express-jsdoc-swagger copied to clipboard

[BUG] apiKey Security Type Error

Open Facinorous-420 opened this issue 2 years ago • 1 comments

Describe the bug Currently when you use an apiKey type, which requires different parameters than the other security types (name, and in) it causes a type error. This is because of this typing: https://bss.nz/i/09-28-2021-Pd2pNRkOmD.png

To Reproduce In options, use this as your security:

security: {
  BasicAuth: {
    type: 'apiKey',
    name: 'test',
     in: 'parameter'
    }
  },

Screenshots https://bss.nz/i/09-28-2021-z60am9cTsL.png

Facinorous-420 avatar Sep 29 '21 02:09 Facinorous-420

Hi we are working on improving security configuration and probably this will be fixed when we solve this issue #170

kevinccbsg avatar Jul 27 '22 19:07 kevinccbsg