Skip to content

Commit

Permalink
Change security scheme name for security related swaggers
Browse files Browse the repository at this point in the history
  • Loading branch information
mevan-karu committed Nov 10, 2024
1 parent 426e44e commit 36e36f9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ paths:
'400':
description: Invalid tag value
security:
- petstore_auth:
- default:
- write:pets
'/jwtheader':
get:
Expand Down Expand Up @@ -116,7 +116,7 @@ securityDefinitions:
type: apiKey
name: x-api-key-header
in: header
petstore_auth:
default:
type: oauth2
authorizationUrl: 'http://mockBackend:2380/oauth/authorize'
flow: implicit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ paths:
schema:
$ref: '#/definitions/ApiResponse'
security:
- petstore_auth:
- default:
- 'write:pets'
- 'read:pets'
/pet:
Expand All @@ -108,7 +108,7 @@ paths:
'405':
description: Invalid input
security:
- petstore_auth:
- default:
- 'write:pets'
- 'read:pets'
put:
Expand Down Expand Up @@ -138,7 +138,7 @@ paths:
'405':
description: Validation exception
security:
- petstore_auth:
- default:
- 'write:pets'
- 'read:pets'
/pet/findByStatus:
Expand Down Expand Up @@ -175,7 +175,7 @@ paths:
'400':
description: Invalid status value
security:
- petstore_auth:
- default:
- 'write:pets'
/pets/findByTags:
get:
Expand Down Expand Up @@ -206,7 +206,7 @@ paths:
'400':
description: Invalid tag value
security:
- petstore_auth:
- default:
- 'write:pets'
- 'read:pets'
deprecated: true
Expand Down Expand Up @@ -268,7 +268,7 @@ paths:
'405':
description: Invalid input
security:
- petstore_auth:
- default:
- 'write:pets'
- 'read:pets'
delete:
Expand Down Expand Up @@ -297,7 +297,7 @@ paths:
'404':
description: Pet not found
security:
- petstore_auth:
- default:
- 'write:pets'
- 'read:pets'
/store/order:
Expand Down Expand Up @@ -601,7 +601,7 @@ paths:
'400':
description: Invalid status value
security:
- petstore_auth: [ ]
- default: [ ]
/jwttoken:
get:
summary: Get the backend jwt token
Expand All @@ -613,7 +613,7 @@ paths:
'400':
description: Invalid status value
security:
- petstore_auth: [ ]
- default: [ ]
/headers:
get:
summary: getHeaders
Expand All @@ -627,7 +627,7 @@ paths:
'404':
description: Resource not found
security:
- petstore_auth: [ ]
- default: [ ]
/headers/{headerId}.api:
get:
summary: getHeaders
Expand All @@ -641,13 +641,13 @@ paths:
'404':
description: Resource not found
security:
- petstore_auth: [ ]
- default: [ ]
securityDefinitions:
api_key:
type: apiKey
name: api_key
in: header
petstore_auth:
default:
type: oauth2
authorizationUrl: 'http://mockBackend:2380/oauth/authorize'
flow: implicit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ paths:
'400':
description: Invalid status value
security:
- petstore_auth:
- default:
- 'write:pets'
securityDefinitions:
api_key:
type: apiKey
name: api_key
in: header
petstore_auth:
default:
type: oauth2
authorizationUrl: 'http://mockBackend:2380/oauth/authorize'
flow: implicit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ paths:
'405':
description: Invalid input
security:
- petstore_auth:
- default:
- 'write:pets'
- 'read:pets'
delete:
Expand Down Expand Up @@ -130,7 +130,7 @@ paths:
'404':
description: Pet not found
security:
- petstore_auth:
- default:
- 'write:pets'
- 'read:pets'
'/removeauthheader':
Expand All @@ -144,13 +144,13 @@ paths:
'400':
description: Invalid status value
security:
- petstore_auth: [ ]
- default: [ ]
securityDefinitions:
api_key:
type: apiKey
name: api_key
in: header
petstore_auth:
default:
type: oauth2
authorizationUrl: 'http://mockBackend:2380/oauth/authorize'
flow: implicit
Expand Down

0 comments on commit 36e36f9

Please sign in to comment.