@@ -394,10 +394,10 @@ describe.only('Swagger Security Middleware v2.0', function () {
394
394
395
395
helpers . createServer ( [ petStoreJson ] , {
396
396
swaggerRouterOptions : swaggerRouterOptions ,
397
- swaggerSecurityOptions : [ {
397
+ swaggerSecurityOptions : {
398
398
local : local . func ,
399
399
local2 : local2 . func
400
- } ]
400
+ }
401
401
} , function ( app ) {
402
402
request ( app )
403
403
. get ( '/api/securedAnd' )
@@ -412,10 +412,10 @@ describe.only('Swagger Security Middleware v2.0', function () {
412
412
413
413
helpers . createServer ( [ petStoreJson ] , {
414
414
swaggerRouterOptions : swaggerRouterOptions ,
415
- swaggerSecurityOptions : [ {
415
+ swaggerSecurityOptions : {
416
416
local : local . func ,
417
417
local2 : local2 . func
418
- } ]
418
+ }
419
419
} , function ( app ) {
420
420
request ( app )
421
421
. get ( '/api/securedAnd' )
@@ -430,10 +430,10 @@ describe.only('Swagger Security Middleware v2.0', function () {
430
430
431
431
helpers . createServer ( [ petStoreJson ] , {
432
432
swaggerRouterOptions : swaggerRouterOptions ,
433
- swaggerSecurityOptions : [ {
433
+ swaggerSecurityOptions : {
434
434
local : local . func ,
435
435
local2 : local2 . func
436
- } ]
436
+ }
437
437
} , function ( app ) {
438
438
request ( app )
439
439
. get ( '/api/securedAnd' )
@@ -447,10 +447,10 @@ describe.only('Swagger Security Middleware v2.0', function () {
447
447
var local2 = new SecurityDef ( false ) ;
448
448
449
449
helpers . createServer ( [ petStoreJson ] , {
450
- swaggerSecurityOptions : [ {
450
+ swaggerSecurityOptions : {
451
451
local : local . func ,
452
452
local2 : local2 . func
453
- } ]
453
+ }
454
454
} , function ( app ) {
455
455
request ( app )
456
456
. get ( '/api/securedAnd' )
@@ -467,10 +467,10 @@ describe.only('Swagger Security Middleware v2.0', function () {
467
467
468
468
helpers . createServer ( [ petStoreJson ] , {
469
469
swaggerRouterOptions : swaggerRouterOptions ,
470
- swaggerSecurityOptions : [
471
- { local : local . func } ,
472
- { local2 : local2 . func }
473
- ]
470
+ swaggerSecurityOptions : {
471
+ local : local . func ,
472
+ local2 : local2 . func
473
+ }
474
474
} , function ( app ) {
475
475
request ( app )
476
476
. get ( '/api/securedOr' )
@@ -485,12 +485,10 @@ describe.only('Swagger Security Middleware v2.0', function () {
485
485
486
486
helpers . createServer ( [ petStoreJson ] , {
487
487
swaggerRouterOptions : swaggerRouterOptions ,
488
- swaggerSecurityOptions : [
489
- {
490
- local : local . func ,
491
- local2 : local2 . func
492
- }
493
- ]
488
+ swaggerSecurityOptions : {
489
+ local : local . func ,
490
+ local2 : local2 . func
491
+ }
494
492
} , function ( app ) {
495
493
request ( app )
496
494
. get ( '/api/securedOr' )
@@ -505,12 +503,10 @@ describe.only('Swagger Security Middleware v2.0', function () {
505
503
506
504
helpers . createServer ( [ petStoreJson ] , {
507
505
swaggerRouterOptions : swaggerRouterOptions ,
508
- swaggerSecurityOptions : [
509
- {
510
- local : local . func ,
511
- local2 : local2 . func
512
- }
513
- ]
506
+ swaggerSecurityOptions : {
507
+ local : local . func ,
508
+ local2 : local2 . func
509
+ }
514
510
} , function ( app ) {
515
511
request ( app )
516
512
. get ( '/api/securedOr' )
@@ -524,12 +520,10 @@ describe.only('Swagger Security Middleware v2.0', function () {
524
520
var local2 = new SecurityDef ( false ) ;
525
521
526
522
helpers . createServer ( [ petStoreJson ] , {
527
- swaggerSecurityOptions : [
528
- {
529
- local : local . func ,
530
- local2 : local2 . func
531
- }
532
- ]
523
+ swaggerSecurityOptions : {
524
+ local : local . func ,
525
+ local2 : local2 . func
526
+ }
533
527
} , function ( app ) {
534
528
request ( app )
535
529
. get ( '/api/securedOr' )
0 commit comments