Replies: 1 comment
-
Hey @X-RoNar-X, I feel that adding a concept of validation to TinyDB is beyond the scope of what TinyDB should do. But you could write a custom table class that implements your own validation. Unfortunately it's not really composable with other table class modifications, but if you're writing your own application, it's a relatively simple solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
Do you think it can be possible to add in the library a way to accept an insert or and update only if the content of the request is validated by a json validation library like Cerberus ?
I modified the table class and especially the _update_table method like below but I want to now if it existe a better way of doing this ?
Beta Was this translation helpful? Give feedback.
All reactions