diff --git a/integrations/Gemfile.lock b/integrations/Gemfile.lock index 0a38f9cb..0220dbbc 100644 --- a/integrations/Gemfile.lock +++ b/integrations/Gemfile.lock @@ -7,7 +7,7 @@ GIT PATH remote: . specs: - multiwoven-integrations (0.1.60) + multiwoven-integrations (0.1.61) activesupport async-websocket csv diff --git a/integrations/lib/multiwoven/integrations/destination/salesforce_consumer_goods_cloud/schema_helper.rb b/integrations/lib/multiwoven/integrations/destination/salesforce_consumer_goods_cloud/schema_helper.rb index c98d7b9c..7a6386ac 100644 --- a/integrations/lib/multiwoven/integrations/destination/salesforce_consumer_goods_cloud/schema_helper.rb +++ b/integrations/lib/multiwoven/integrations/destination/salesforce_consumer_goods_cloud/schema_helper.rb @@ -62,12 +62,12 @@ def salesforce_field_to_json_schema_type(sf_field) # rubocop:disable Metrics/Abc when "picklist", "multipicklist", "Picklist (Multi-select)" if sf_field[:picklistValues] && sf_field["nillable"] enum_values = sf_field[:picklistValues].map { |val| val["value"] } - { "type": %w[array null], "items": { "type": "string" }, "enum": enum_values } + { "type": %w[string null], "items": { "type": "string" }, "enum": enum_values } elsif sf_field[:picklistValues] enum_values = sf_field[:picklistValues].map { |val| val["value"] } - { "type": "array", "items": { "type": "string" }, "enum": enum_values } + { "type": "string", "items": { "type": "string" }, "enum": enum_values } else - { "type": "array", "items": { "type": "string" } } + { "type": "string", "items": { "type": "string" } } end when "reference", "Reference (Lookup & Master-Detail)" if sf_field["nillable"] diff --git a/integrations/lib/multiwoven/integrations/rollout.rb b/integrations/lib/multiwoven/integrations/rollout.rb index 9b66968f..993520ac 100644 --- a/integrations/lib/multiwoven/integrations/rollout.rb +++ b/integrations/lib/multiwoven/integrations/rollout.rb @@ -2,7 +2,7 @@ module Multiwoven module Integrations - VERSION = "0.1.60" + VERSION = "0.1.61" ENABLED_SOURCES = %w[ Snowflake diff --git a/integrations/lib/multiwoven/integrations/source/salesforce_consumer_goods_cloud/schema_helper.rb b/integrations/lib/multiwoven/integrations/source/salesforce_consumer_goods_cloud/schema_helper.rb index 6b47c54b..586b448d 100644 --- a/integrations/lib/multiwoven/integrations/source/salesforce_consumer_goods_cloud/schema_helper.rb +++ b/integrations/lib/multiwoven/integrations/source/salesforce_consumer_goods_cloud/schema_helper.rb @@ -62,12 +62,12 @@ def salesforce_field_to_json_schema_type(sf_field) # rubocop:disable Metrics/Abc when "picklist", "multipicklist", "Picklist (Multi-select)" if sf_field[:picklistValues] && sf_field["nillable"] enum_values = sf_field[:picklistValues].map { |val| val["value"] } - { "type": %w[array null], "items": { "type": "string" }, "enum": enum_values } + { "type": %w[string null], "items": { "type": "string" }, "enum": enum_values } elsif sf_field[:picklistValues] enum_values = sf_field[:picklistValues].map { |val| val["value"] } - { "type": "array", "items": { "type": "string" }, "enum": enum_values } + { "type": "string", "items": { "type": "string" }, "enum": enum_values } else - { "type": "array", "items": { "type": "string" } } + { "type": "string", "items": { "type": "string" } } end when "reference", "Reference (Lookup & Master-Detail)" if sf_field["nillable"]