File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ module Desc
24
24
# @option options :nickname [String] nickname of the endpoint
25
25
# @option options :produces [Array[String]] a list of MIME types the endpoint produce
26
26
# @option options :consumes [Array[String]] a list of MIME types the endpoint consume
27
+ # @option options :security [Array[Hash]] a list of security schemes
27
28
# @option options :tags [Array[String]] a list of tags
28
29
# @yield a block yielding an instance context with methods mapping to
29
30
# each of the above, except that :entity is also aliased as #success
@@ -100,6 +101,7 @@ def desc_container
100
101
:nickname ,
101
102
:produces ,
102
103
:consumes ,
104
+ :security ,
103
105
:tags
104
106
)
105
107
Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ class Dummy
44
44
nickname : 'nickname' ,
45
45
produces : %w[ array of mime_types ] ,
46
46
consumes : %w[ array of mime_types ] ,
47
- tags : %w[ tag1 tag2 ]
47
+ tags : %w[ tag1 tag2 ] ,
48
+ security : %w[ array of security schemes ]
48
49
}
49
50
50
51
subject . desc 'The description' do
@@ -71,6 +72,7 @@ class Dummy
71
72
produces %w[ array of mime_types ]
72
73
consumes %w[ array of mime_types ]
73
74
tags %w[ tag1 tag2 ]
75
+ security %w[ array of security schemes ]
74
76
end
75
77
76
78
expect ( subject . namespace_setting ( :description ) ) . to eq ( expected_options )
You can’t perform that action at this time.
0 commit comments