Skip to content

Commit

Permalink
Add security schemas to fixture openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Nov 25, 2024
1 parent 88d70a9 commit c08370a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions test/fixtures/types/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ export default {
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
security: [],
security: [
{
api_key: [],
},
],
summary: '/foos/get',
tags: ['/foos'],
'x-response-key': 'foo',
Expand Down Expand Up @@ -194,7 +198,14 @@ export default {
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
security: [],
security: [
{
api_key: [],
},
{
client_session: [],
},
],
summary: '/foos/list',
tags: ['/foos'],
'x-response-key': 'foos',
Expand Down

0 comments on commit c08370a

Please sign in to comment.