-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add test to show that you can't use patternProperties
in schema
#4951
Add test to show that you can't use patternProperties
in schema
#4951
Conversation
This use case is missing in the dev-mode plugin. It should not regex-check |
I've just pushed a fix for that but it's still failing (the result includes |
How can we move this forward? |
I've synced this with master and improved the test so it's more clear |
Can we please move this forward? |
To be clear, I'm willing to put in work on this if needed (as I have done), I just need some direction if so. |
What is the state of this PR? The line that atm fails the CI should be removed. Accessing the properties like that is not possible |
This PR's initial aim was to prove that I fixed the initial regex issue. But in my opinion it still doesn't work because the
It seems like you're saying that you can't do If you're right, then I can remove the lines that break the test and we can merge it, but I wouldn't want to use |
@pubkey we're pushing hard to rewrite all of our app to use RxDB and this is a bit of a blocker / an unknown that we'd like to resolve. Could I please get an answer on the above? |
Using .get() on unknown properties will work in the next major RxDB version. |
Ok I had no idea that applied to the use of I'll update this test. |
Done |
Thank you for your work. I merged this into the v15 branch. |
@pubkey do you have a rough idea of when v15 will be released? |
The beta will be release this week. Non-beta release will be at least 4 weeks. Maybe longer depending on which problems occur. |
@pubkey ok thanks. I assume that means there will be matching |
Yes, premium will also be released in the matching beta version. |
This PR contains:
Describe the problem you have without this PR
This is for #4926. It shows that if you use
patternProperties
to define the value of unknown keys, that it'll error due to schema key validation.