Skip to content

Commit 36e36f9

Browse files
committed
Change security scheme name for security related swaggers
1 parent 426e44e commit 36e36f9

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

integration/test-integration/src/test/resources/openAPIs/api_key_swagger_security_openAPI.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ paths:
8282
'400':
8383
description: Invalid tag value
8484
security:
85-
- petstore_auth:
85+
- default:
8686
- write:pets
8787
'/jwtheader':
8888
get:
@@ -116,7 +116,7 @@ securityDefinitions:
116116
type: apiKey
117117
name: x-api-key-header
118118
in: header
119-
petstore_auth:
119+
default:
120120
type: oauth2
121121
authorizationUrl: 'http://mockBackend:2380/oauth/authorize'
122122
flow: implicit

integration/test-integration/src/test/resources/openAPIs/openAPI.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ paths:
8181
schema:
8282
$ref: '#/definitions/ApiResponse'
8383
security:
84-
- petstore_auth:
84+
- default:
8585
- 'write:pets'
8686
- 'read:pets'
8787
/pet:
@@ -108,7 +108,7 @@ paths:
108108
'405':
109109
description: Invalid input
110110
security:
111-
- petstore_auth:
111+
- default:
112112
- 'write:pets'
113113
- 'read:pets'
114114
put:
@@ -138,7 +138,7 @@ paths:
138138
'405':
139139
description: Validation exception
140140
security:
141-
- petstore_auth:
141+
- default:
142142
- 'write:pets'
143143
- 'read:pets'
144144
/pet/findByStatus:
@@ -175,7 +175,7 @@ paths:
175175
'400':
176176
description: Invalid status value
177177
security:
178-
- petstore_auth:
178+
- default:
179179
- 'write:pets'
180180
/pets/findByTags:
181181
get:
@@ -206,7 +206,7 @@ paths:
206206
'400':
207207
description: Invalid tag value
208208
security:
209-
- petstore_auth:
209+
- default:
210210
- 'write:pets'
211211
- 'read:pets'
212212
deprecated: true
@@ -268,7 +268,7 @@ paths:
268268
'405':
269269
description: Invalid input
270270
security:
271-
- petstore_auth:
271+
- default:
272272
- 'write:pets'
273273
- 'read:pets'
274274
delete:
@@ -297,7 +297,7 @@ paths:
297297
'404':
298298
description: Pet not found
299299
security:
300-
- petstore_auth:
300+
- default:
301301
- 'write:pets'
302302
- 'read:pets'
303303
/store/order:
@@ -601,7 +601,7 @@ paths:
601601
'400':
602602
description: Invalid status value
603603
security:
604-
- petstore_auth: [ ]
604+
- default: [ ]
605605
/jwttoken:
606606
get:
607607
summary: Get the backend jwt token
@@ -613,7 +613,7 @@ paths:
613613
'400':
614614
description: Invalid status value
615615
security:
616-
- petstore_auth: [ ]
616+
- default: [ ]
617617
/headers:
618618
get:
619619
summary: getHeaders
@@ -627,7 +627,7 @@ paths:
627627
'404':
628628
description: Resource not found
629629
security:
630-
- petstore_auth: [ ]
630+
- default: [ ]
631631
/headers/{headerId}.api:
632632
get:
633633
summary: getHeaders
@@ -641,13 +641,13 @@ paths:
641641
'404':
642642
description: Resource not found
643643
security:
644-
- petstore_auth: [ ]
644+
- default: [ ]
645645
securityDefinitions:
646646
api_key:
647647
type: apiKey
648648
name: api_key
649649
in: header
650-
petstore_auth:
650+
default:
651651
type: oauth2
652652
authorizationUrl: 'http://mockBackend:2380/oauth/authorize'
653653
flow: implicit

integration/test-integration/src/test/resources/openAPIs/openAPI_startup.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ paths:
7676
'400':
7777
description: Invalid status value
7878
security:
79-
- petstore_auth:
79+
- default:
8080
- 'write:pets'
8181
securityDefinitions:
8282
api_key:
8383
type: apiKey
8484
name: api_key
8585
in: header
86-
petstore_auth:
86+
default:
8787
type: oauth2
8888
authorizationUrl: 'http://mockBackend:2380/oauth/authorize'
8989
flow: implicit

integration/test-integration/src/test/resources/openAPIs/security_openAPI.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ paths:
101101
'405':
102102
description: Invalid input
103103
security:
104-
- petstore_auth:
104+
- default:
105105
- 'write:pets'
106106
- 'read:pets'
107107
delete:
@@ -130,7 +130,7 @@ paths:
130130
'404':
131131
description: Pet not found
132132
security:
133-
- petstore_auth:
133+
- default:
134134
- 'write:pets'
135135
- 'read:pets'
136136
'/removeauthheader':
@@ -144,13 +144,13 @@ paths:
144144
'400':
145145
description: Invalid status value
146146
security:
147-
- petstore_auth: [ ]
147+
- default: [ ]
148148
securityDefinitions:
149149
api_key:
150150
type: apiKey
151151
name: api_key
152152
in: header
153-
petstore_auth:
153+
default:
154154
type: oauth2
155155
authorizationUrl: 'http://mockBackend:2380/oauth/authorize'
156156
flow: implicit

0 commit comments

Comments
 (0)