mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
add schema to mime type instead of overwriting
This commit is contained in:
@@ -135,7 +135,8 @@ module Rswag
|
|||||||
|
|
||||||
mime_list.each do |mime_type|
|
mime_list.each do |mime_type|
|
||||||
# TODO upgrade to have content-type specific schema
|
# 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user