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

Fix schema validation of parameter queries #28

Merged
merged 6 commits into from
Jul 2, 2024
Merged

Conversation

rkistner
Copy link
Contributor

@rkistner rkistner commented Jul 2, 2024

This version picks up the schema issue correctly (array of parameter queries):
image

While this one doesn't (single parameter query):
image

The issue was the schema not being passed to the function in this specific case, causing schema validation to be bypassed.

This PR also moves pure sync-rule related tests to the sync-rules package, which simplifies the testing cycle a bit.

Copy link

changeset-bot bot commented Jul 2, 2024

🦋 Changeset detected

Latest commit: 8e58d21

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@powersync/service-sync-rules Patch
@powersync/service-core Patch
powersync-open-service Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rkistner rkistner merged commit 33bbb8c into main Jul 2, 2024
8 checks passed
@rkistner rkistner deleted the sync-rule-validation branch July 2, 2024 13:55
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.

2 participants