File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -107,14 +107,13 @@ def self.setup(options)
107
107
def parse_params ( params , path , method )
108
108
params . map do |param , value |
109
109
value [ :type ] = 'file' if value . is_a? ( Hash ) && value [ :type ] == 'Rack::Multipart::UploadedFile'
110
-
111
110
dataType = value . is_a? ( Hash ) ? value [ :type ] ||'String' : 'String'
112
111
description = value . is_a? ( Hash ) ? value [ :desc ] : ''
113
112
required = value . is_a? ( Hash ) ? !!value [ :required ] : false
114
113
paramType = path . match ( ":#{ param } " ) ? 'path' : ( method == 'POST' ) ? 'body' : 'query'
115
114
{
116
115
paramType : paramType ,
117
- name : param ,
116
+ name : value [ :full_name ] || param ,
118
117
description : description ,
119
118
dataType : dataType ,
120
119
required : required
@@ -142,7 +141,7 @@ class Object
142
141
# @person ? @person.name : nil
143
142
# vs
144
143
# @person.try(:name)
145
- #
144
+ #
146
145
# File activesupport/lib/active_support/core_ext/object/try.rb#L32
147
146
def try ( *a , &b )
148
147
if a . empty? && block_given?
You can’t perform that action at this time.
0 commit comments