From ab457743a820d0544fd464f86a0920ba13a224e0 Mon Sep 17 00:00:00 2001 From: Jamie Macey Date: Tue, 13 Oct 2020 16:28:40 -0700 Subject: [PATCH] also move away from deprecated type: basic --- test-app/spec/swagger_helper.rb | 6 ++++-- test-app/swagger/v1/swagger.json | 3 ++- test-app/swagger/v3/openapi.json | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test-app/spec/swagger_helper.rb b/test-app/spec/swagger_helper.rb index ea72c4d..cadb592 100644 --- a/test-app/spec/swagger_helper.rb +++ b/test-app/spec/swagger_helper.rb @@ -70,7 +70,8 @@ RSpec.configure do |config| components: { securitySchemes: { basic_auth: { - type: :basic + type: :http, + scheme: :basic }, api_key: { type: :apiKey, @@ -135,7 +136,8 @@ RSpec.configure do |config| components: { securitySchemes: { basic_auth: { - type: :basic + type: :http, + scheme: :basic }, api_key: { type: :apiKey, diff --git a/test-app/swagger/v1/swagger.json b/test-app/swagger/v1/swagger.json index 957206c..e18f579 100644 --- a/test-app/swagger/v1/swagger.json +++ b/test-app/swagger/v1/swagger.json @@ -377,7 +377,8 @@ "components": { "securitySchemes": { "basic_auth": { - "type": "basic" + "type": "http", + "scheme": "basic" }, "api_key": { "type": "apiKey", diff --git a/test-app/swagger/v3/openapi.json b/test-app/swagger/v3/openapi.json index 97506c4..90b9f18 100644 --- a/test-app/swagger/v3/openapi.json +++ b/test-app/swagger/v3/openapi.json @@ -127,7 +127,8 @@ "components": { "securitySchemes": { "basic_auth": { - "type": "basic" + "type": "http", + "scheme": "basic" }, "api_key": { "type": "apiKey",