mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
Fix oauth2 transform keys except type
This commit is contained in:
@@ -79,7 +79,9 @@ module Rswag
|
||||
components: {
|
||||
securitySchemes: {
|
||||
my_oauth: {
|
||||
flow: :anything
|
||||
type: :oauth2,
|
||||
flow: :anything,
|
||||
token_url: :somewhere
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -128,7 +130,12 @@ module Rswag
|
||||
components: {
|
||||
securitySchemes: {
|
||||
my_oauth: {
|
||||
flows: [:anything]
|
||||
type: :oauth2,
|
||||
flows: {
|
||||
anything: {
|
||||
token_url: :somewhere
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user