Fix oauth2 transform keys except type

This commit is contained in:
Greg Myers
2020-04-04 20:43:31 +01:00
parent bd038949b4
commit d66be41d04
2 changed files with 13 additions and 3 deletions

View File

@@ -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
}
}
}
}
}