mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
Fix response examples
This commit is contained in:
@@ -132,9 +132,8 @@ module Rswag
|
||||
def upgrade_content!(mime_list, target_node)
|
||||
schema = target_node[:schema]
|
||||
return if mime_list.empty? || schema.nil?
|
||||
target_node[:content] ||= {}
|
||||
target_node.merge!(content: {})
|
||||
|
||||
target_node[:content] ||= {}
|
||||
mime_list.each do |mime_type|
|
||||
# TODO upgrade to have content-type specific schema
|
||||
(target_node[:content][mime_type] ||= {}).merge!(schema: schema)
|
||||
|
||||
Reference in New Issue
Block a user