mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-22 22:06:43 +00:00
don't clobber response content
This commit is contained in:
parent
be160c5552
commit
465950a65c
@ -129,7 +129,7 @@ module Rswag
|
||||
end
|
||||
|
||||
def upgrade_content!(mime_list, target_node)
|
||||
target_node.merge!(content: {})
|
||||
target_node.merge!(content: {}) if target_node[:content].nil?
|
||||
schema = target_node[:schema]
|
||||
return if mime_list.empty? || schema.nil?
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user