-
Notifications
You must be signed in to change notification settings - Fork 350
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 server validation of documents #138
Comments
Where would one specify the required schema? Via a config file? |
Yeah, it'll have to be. |
Things that were discussed:
|
I think validation only makes sense if we fail. The case where we weren't sure was for reads (whether to filter out documents that the user doesn't have permissions on, or fail). Another thing that we discussed: |
Yeah this would be great. Its irresponsible to allow clients to store arbitrary documents - you really want some (simple) schema validation for almost anything you store. Calling schema validation code from inlined javascript strings in |
It would be great, if it could be a generic hook, which may be used for validation change update or something else. |
Making it isomorphic would be great as this should make it easier to implement offline support with optimistic updates. What might also be interesting would be to include transformation capabilites which would allow using functions like |
This is to enable a write to go through by validating that the resulting document is valid, but is separate from security rules
The text was updated successfully, but these errors were encountered: