class Dry::Schema::JSONSchema::SchemaCompiler

def merge_opts!(orig_opts, new_opts)

Other tags:
    Api: - private
def merge_opts!(orig_opts, new_opts)
  new_type = new_opts[:type]
  orig_type = orig_opts[:type]
  if orig_type && new_type && orig_type != new_type
    new_opts[:type] = [orig_type, new_type]
  end
  orig_opts.merge!(new_opts)
end