Skip to content

Commit

Permalink
fix: rever security config change
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinccbsg committed Sep 9, 2021
1 parent 9dd2bce commit 42b268d
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 26 deletions.
2 changes: 2 additions & 0 deletions test/e2e/parameters/parameters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ test('should parse parameters from jsdoc-example', async () => {
get: {
deprecated: false,
description: undefined,
security: [],
summary: 'This is the summary of the endpoint',
responses: {
200: {
Expand Down Expand Up @@ -71,6 +72,7 @@ test('should parse parameters from jsdoc-example', async () => {
get: {
deprecated: false,
description: undefined,
security: [],
summary: 'This is the summary of the endpoint',
responses: {
200: {
Expand Down
2 changes: 2 additions & 0 deletions test/transforms/paths/combineSchemas.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ test('should parse jsdoc path response with oneOf keyword', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -128,6 +129,7 @@ test('should parse jsdoc path reference params with allOf keyword', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
parameters: [{
deprecated: false,
Expand Down
5 changes: 5 additions & 0 deletions test/transforms/paths/formParameters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe('form requestBody tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
content: {
'application/json': {
Expand Down Expand Up @@ -65,6 +66,7 @@ describe('form requestBody tests', () => {
summary: '',
responses: {},
tags: [],
security: [],
parameters: [
{
deprecated: false,
Expand Down Expand Up @@ -125,6 +127,7 @@ describe('form requestBody tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: 'name body description',
required: true,
Expand Down Expand Up @@ -174,6 +177,7 @@ describe('form requestBody tests', () => {
summary: '',
responses: {},
tags: [],
security: [],
parameters: [
{
deprecated: false,
Expand Down Expand Up @@ -242,6 +246,7 @@ describe('form requestBody tests', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
parameters: [
{
Expand Down
6 changes: 6 additions & 0 deletions test/transforms/paths/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe('setPaths method', () => {
summary: 'This is the summary of the endpoint',
description: 'This is the description of the endpoint',
parameters: [],
security: [],
tags: [],
responses: {
200: {
Expand Down Expand Up @@ -77,6 +78,7 @@ describe('setPaths method', () => {
deprecated: true,
summary: 'This is the summary of the endpoint',
parameters: [],
security: [],
tags: [],
responses: {
200: {
Expand Down Expand Up @@ -122,6 +124,7 @@ describe('setPaths method', () => {
deprecated: true,
summary: 'This is the summary of the endpoint',
parameters: [],
security: [],
tags: [],
responses: {
200: {
Expand All @@ -143,6 +146,7 @@ describe('setPaths method', () => {
description: undefined,
summary: 'This is the summary of the endpoint',
parameters: [],
security: [],
tags: [],
responses: {
200: {
Expand Down Expand Up @@ -188,6 +192,7 @@ describe('setPaths method', () => {
deprecated: true,
summary: 'This is the summary of the endpoint',
parameters: [],
security: [],
tags: [],
responses: {
200: {
Expand All @@ -207,6 +212,7 @@ describe('setPaths method', () => {
description: undefined,
summary: 'This is the summary of the endpoint',
parameters: [],
security: [],
tags: [],
responses: {
200: {
Expand Down
8 changes: 8 additions & 0 deletions test/transforms/paths/parameters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('params tests', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
operationId: 'getInfo',
parameters: [{
Expand Down Expand Up @@ -54,6 +55,7 @@ describe('params tests', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
parameters: [],
},
Expand All @@ -80,6 +82,7 @@ describe('params tests', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
parameters: [{
deprecated: true,
Expand Down Expand Up @@ -119,6 +122,7 @@ describe('params tests', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
parameters: [{
deprecated: true,
Expand Down Expand Up @@ -166,6 +170,7 @@ describe('params tests', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
parameters: [{
deprecated: false,
Expand Down Expand Up @@ -201,6 +206,7 @@ describe('params tests', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
parameters: [{
deprecated: true,
Expand Down Expand Up @@ -239,6 +245,7 @@ describe('params tests', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
parameters: [{
deprecated: false,
Expand Down Expand Up @@ -278,6 +285,7 @@ describe('params tests', () => {
description: undefined,
summary: '',
responses: {},
security: [],
tags: [],
parameters: [{
deprecated: false,
Expand Down
10 changes: 10 additions & 0 deletions test/transforms/paths/requestBody.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
},
},
},
Expand All @@ -44,6 +45,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: 'name body description',
required: true,
Expand Down Expand Up @@ -82,6 +84,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: '',
required: true,
Expand Down Expand Up @@ -122,6 +125,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: 'name body description',
required: true,
Expand Down Expand Up @@ -163,6 +167,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: 'Tags of the messages to delete',
required: true,
Expand Down Expand Up @@ -204,6 +209,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: 'name body description',
required: true,
Expand Down Expand Up @@ -244,6 +250,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: 'name body description',
required: true,
Expand Down Expand Up @@ -281,6 +288,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: 'name body description',
required: true,
Expand Down Expand Up @@ -323,6 +331,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: 'name body description',
required: true,
Expand Down Expand Up @@ -375,6 +384,7 @@ describe('request body tests', () => {
responses: {},
tags: [],
parameters: [],
security: [],
requestBody: {
description: 'name body description',
required: true,
Expand Down
13 changes: 13 additions & 0 deletions test/transforms/paths/responses.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -57,6 +58,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -107,6 +109,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -161,6 +164,7 @@ describe('response tests', () => {
responses: {},
parameters: [],
tags: [],
security: [],
},
},
},
Expand Down Expand Up @@ -195,6 +199,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
default: {
description: 'success response',
Expand Down Expand Up @@ -238,6 +243,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -280,6 +286,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -319,6 +326,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -363,6 +371,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -427,6 +436,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -538,6 +548,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -607,6 +618,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down Expand Up @@ -664,6 +676,7 @@ describe('response tests', () => {
summary: 'This is the summary of the endpoint',
parameters: [],
tags: [],
security: [],
responses: {
200: {
description: 'success response',
Expand Down
1 change: 1 addition & 0 deletions test/transforms/paths/security.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ describe('Paths - security', () => {
tags: [],
responses: {},
parameters: [],
security: [],
},
},
},
Expand Down
3 changes: 3 additions & 0 deletions test/transforms/paths/tags.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('Paths - tags', () => {
],
responses: {},
parameters: [],
security: [],
},
},
},
Expand Down Expand Up @@ -51,6 +52,7 @@ describe('Paths - tags', () => {
],
responses: {},
parameters: [],
security: [],
},
},
},
Expand Down Expand Up @@ -81,6 +83,7 @@ describe('Paths - tags', () => {
],
responses: {},
parameters: [],
security: [],
},
},
},
Expand Down
Loading

0 comments on commit 42b268d

Please sign in to comment.