Skip to content

bulk-cdk-core-base: replace schema validation library #44593

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

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

postamar
Copy link
Contributor

What

The schema validation library we were using to validate the CLI inputs was too strict. For instance, it would complain that namespace would be null in an AirbyteStream, despite that being not a required field.

It turns out that the reason for this is that the old schema validation library was for json-schema v7 whereas the airbyte protocol is defined for openapi. While these schema definition schemes are very similar they're not quite the same! Evidently openapi is a bit more liberal. In any case, openapi is what we care about anyway.

How

Changed libraries, added regression test case, added more tests.

Review guide

It's quite straightforward.

User Impact

None whatsoever.

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@postamar postamar requested review from a team as code owners August 23, 2024 15:02
Copy link

vercel bot commented Aug 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Aug 23, 2024 3:02pm

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Aug 23, 2024
Copy link
Contributor

@evantahler evantahler left a comment

Choose a reason for hiding this comment

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

Can't argue with the test cases!

@postamar postamar merged commit 1f5756c into master Aug 23, 2024
31 checks passed
@postamar postamar deleted the postamar/replace-schema-validation-library branch August 23, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants