mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-22 22:06:43 +00:00
add schema to mime type instead of overwriting
This commit is contained in:
parent
465950a65c
commit
bd48e40529
@ -135,7 +135,8 @@ module Rswag
|
||||
|
||||
mime_list.each do |mime_type|
|
||||
# TODO upgrade to have content-type specific schema
|
||||
target_node[:content][mime_type] = { schema: schema }
|
||||
target_node[:content][mime_type] = {} if target_node[:content][mime_type].nil?
|
||||
target_node[:content][mime_type][:schema] = schema
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user