module Multiwoven::Integrations::Destination::Airtable::SchemaHelper
def adjust_array_with_any(original_type, complex_type, exec_type, options)
def adjust_array_with_any(original_type, complex_type, exec_type, options) if original_type == "formula" && %w[number currency percent duration].include?(exec_type) complex_type = SCHEMA_TYPES[:NUMBER] elsif original_type == "formula" && ARRAY_FORMULAS.none? { |x| options.fetch("formula", "").start_with?(x) } complex_type = SCHEMA_TYPES[:STRING] elsif SIMPLE_AIRTABLE_TYPES.keys.include?(exec_type) complex_type["items"] = deep_copy(SIMPLE_AIRTABLE_TYPES[exec_type]) else complex_type["items"] = SCHEMA_TYPES[:STRING] end complex_type end