From 3e10b09f23b5ee63b765b2487b474952a984e495 Mon Sep 17 00:00:00 2001 From: Jamie Macey Date: Tue, 13 Oct 2020 16:27:32 -0700 Subject: [PATCH] swap deprecated SecurityDefinitions for SecuritySchemes --- test-app/spec/swagger_helper.rb | 36 ++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/test-app/spec/swagger_helper.rb b/test-app/spec/swagger_helper.rb index 3b8dfae..ea72c4d 100644 --- a/test-app/spec/swagger_helper.rb +++ b/test-app/spec/swagger_helper.rb @@ -67,14 +67,16 @@ RSpec.configure do |config| required: ['id', 'headline'] } }, - securityDefinitions: { - basic_auth: { - type: :basic - }, - api_key: { - type: :apiKey, - name: 'api_key', - in: :query + components: { + securitySchemes: { + basic_auth: { + type: :basic + }, + api_key: { + type: :apiKey, + name: 'api_key', + in: :query + } } } }, @@ -130,14 +132,16 @@ RSpec.configure do |config| required: ['id', 'headline'] } }, - securityDefinitions: { - basic_auth: { - type: :basic - }, - api_key: { - type: :apiKey, - name: 'api_key', - in: :query + components: { + securitySchemes: { + basic_auth: { + type: :basic + }, + api_key: { + type: :apiKey, + name: 'api_key', + in: :query + } } } }