Skip to content

Change integer types to number in tracking_value_requests schema#51

Open
faina-smalls wants to merge 1 commit into
singer-io:masterfrom
faina-smalls:patch-3
Open

Change integer types to number in tracking_value_requests schema#51
faina-smalls wants to merge 1 commit into
singer-io:masterfrom
faina-smalls:patch-3

Conversation

@faina-smalls

Copy link
Copy Markdown

Fix: Change discount percentage fields from integer to number in tracking_value_requests schema

The Impact API returns decimal percentage values (e.g., 7.4%) but the schema incorrectly defined discount_percent and related fields as integer type, causing sync failures when encountering non-whole number percentages.

Changed the following fields from integer to number:

  • bogo_get_discount_percent
  • discount_maximum_percent
  • discount_percent
  • discount_percent_range_end
  • discount_percent_range_start

This completes the schema fix across all affected tables (deals, promo_codes, and tracking_value_requests) and aligns with the correct definition in ads.json.

Part of fix for: "discount_percent: 7.4 does not match {'type': ['integer', 'null']}"

Fix: Change discount percentage fields from integer to number in tracking_value_requests schema

The Impact API returns decimal percentage values (e.g., 7.4%) but the schema incorrectly defined discount_percent and related fields as integer type, causing sync failures when encountering non-whole number percentages.

Changed the following fields from integer to number:
- bogo_get_discount_percent
- discount_maximum_percent
- discount_percent
- discount_percent_range_end
- discount_percent_range_start

This completes the schema fix across all affected tables (deals, promo_codes, and tracking_value_requests) and aligns with the correct definition in ads.json.

Part of fix for: "discount_percent: 7.4 does not match {'type': ['integer', 'null']}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant