Preserve order of securitySchemes (#14536)

* Remove alphabetical sort

* Update integration testing expectations

* Regenerate files
This commit is contained in:
Beppe Catanese
2023-02-10 15:20:19 +01:00
committed by GitHub
parent 1b60ee1799
commit 68b944e6e6
308 changed files with 4019 additions and 4014 deletions

View File

@@ -227,6 +227,13 @@ module Petstore
# Returns Auth Settings hash for api client.
def auth_settings
{
'petstore_auth' =>
{
type: 'oauth2',
in: 'header',
key: 'Authorization',
value: "Bearer #{access_token_with_refresh}"
},
'api_key' =>
{
type: 'api_key',
@@ -241,14 +248,6 @@ module Petstore
key: 'api_key_query',
value: api_key_with_prefix('api_key_query')
},
'bearer_test' =>
{
type: 'bearer',
in: 'header',
format: 'JWT',
key: 'Authorization',
value: "Bearer #{access_token_with_refresh}"
},
'http_basic_test' =>
{
type: 'basic',
@@ -256,10 +255,11 @@ module Petstore
key: 'Authorization',
value: basic_auth_token
},
'petstore_auth' =>
'bearer_test' =>
{
type: 'oauth2',
type: 'bearer',
in: 'header',
format: 'JWT',
key: 'Authorization',
value: "Bearer #{access_token_with_refresh}"
},