Skip to content

Commit 527c18e

Browse files
committed
set type if present
1 parent 0224489 commit 527c18e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rspec_api_documentation/writers/open_api_writer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def inject_body_parameter(schema, parameter)
276276
end
277277

278278
scope.properties[parameter[:name].to_s] ||= get_schema(parameter[:value])
279+
scope.properties[parameter[:name].to_s].type = parameter[:type] if parameter[:type]
279280
scope.properties[parameter[:name].to_s].description = parameter[:description] if parameter[:description]
280281
end
281282
end

0 commit comments

Comments
 (0)