mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-22 22:06:43 +00:00
swap deprecated SecurityDefinitions for SecuritySchemes
This commit is contained in:
parent
d090516f48
commit
3e10b09f23
@ -67,14 +67,16 @@ RSpec.configure do |config|
|
|||||||
required: ['id', 'headline']
|
required: ['id', 'headline']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
securityDefinitions: {
|
components: {
|
||||||
basic_auth: {
|
securitySchemes: {
|
||||||
type: :basic
|
basic_auth: {
|
||||||
},
|
type: :basic
|
||||||
api_key: {
|
},
|
||||||
type: :apiKey,
|
api_key: {
|
||||||
name: 'api_key',
|
type: :apiKey,
|
||||||
in: :query
|
name: 'api_key',
|
||||||
|
in: :query
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -130,14 +132,16 @@ RSpec.configure do |config|
|
|||||||
required: ['id', 'headline']
|
required: ['id', 'headline']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
securityDefinitions: {
|
components: {
|
||||||
basic_auth: {
|
securitySchemes: {
|
||||||
type: :basic
|
basic_auth: {
|
||||||
},
|
type: :basic
|
||||||
api_key: {
|
},
|
||||||
type: :apiKey,
|
api_key: {
|
||||||
name: 'api_key',
|
type: :apiKey,
|
||||||
in: :query
|
name: 'api_key',
|
||||||
|
in: :query
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user