Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xy] Check type key in anyOf array objects. #4948

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

wangxiaoyou1993
Copy link
Member

Description

Check type key in anyOf array objects.

Close: #4903

The MongoDB source has this schema: https://github.com/mage-ai/mage-ai/blob/master/mage_integrations/mage_integrations/sources/mongodb/tap_mongodb/sync_strategies/common.py#L259
list_schema = {"type": "array", "items": {"anyOf": [{}]}}

How Has This Been Tested?

  • Tested with local mage integration pipeline

Checklist

  • The PR is tagged with proper labels (bug, enhancement, feature, documentation)
  • I have performed a self-review of my own code
  • I have added unit tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

cc:

@wangxiaoyou1993 wangxiaoyou1993 added the bug Something isn't working label Apr 16, 2024
@wangxiaoyou1993 wangxiaoyou1993 merged commit 4263047 into master Apr 16, 2024
9 checks passed
@wangxiaoyou1993 wangxiaoyou1993 deleted the xiaoyou/fix-mongo-to-pg branch April 16, 2024 21:47
oonyoontong pushed a commit to bunker-tech/mage-ai that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] 'type' error when transforming from mongodb to postgres
1 participant