Skip to content

Conversation

@Alex-Bair
Copy link
Member

Tiktok recently changed their API to have datetime fields return values that don't comply with the ISO 8601 format. Meaning that in order to avoid schema violation errors, all those fields shouldn't have a "format": "date-time" in the document schema

We previously tried to remove these formats in #343, but formats defined by the connector need patched out with null to remove them per JSON merge semantics. This PR does that for the currently patched streams and for all other discovered streams that had "format": "date-time" for one or more fields.

I confirmed only "format": "date-time" is removed from the streams' schemas by comparing the discovery results of flowctl raw discover --source flow.yaml before and after updating the stream patches.

Tiktok recently changed their API to have datetime fields return values
that don't comply with the ISO 8601 format. Meaning that in order to
avoid schema violation errors, all those fields shouldn't have a
`"format": "date-time"` in the document schema

We previously tried to remove these formats in
#343, but formats defined by the
connector need patched out with `null` to remove them per JSON merge
semantics. This commit does that for the currently patched streams and
for all other discovered streams that had `"format": "date-time"` for
one or more fields.
@Alex-Bair Alex-Bair marked this pull request as ready for review September 23, 2025 13:44
@Alex-Bair Alex-Bair requested a review from a team September 23, 2025 13:45
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Alex-Bair Alex-Bair merged commit 2d0174d into master Sep 23, 2025
46 of 57 checks passed
@Alex-Bair Alex-Bair deleted the bair/source-tiktok-marketing-patch-out-format-datetime branch September 23, 2025 13:51
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.

3 participants