mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Merge remote-tracking branch 'psmandzich/master' into jamie
This commit is contained in:
@@ -129,9 +129,10 @@ module Rswag
|
||||
end
|
||||
|
||||
def upgrade_content!(mime_list, target_node)
|
||||
target_node[:content] ||= {}
|
||||
schema = target_node[:schema]
|
||||
return if mime_list.empty? || schema.nil?
|
||||
target_node[:content] ||= {}
|
||||
target_node.merge!(content: {})
|
||||
|
||||
mime_list.each do |mime_type|
|
||||
# TODO upgrade to have content-type specific schema
|
||||
|
||||
Reference in New Issue
Block a user