Replies: 1 comment
-
I'm using joi on both the client (before saving) and the server, it works well so far but that needs consistent work indeed. To get one step further a plugin could be built to normalize the nodes having invalid props. |
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
-
Our use case: we let our users create content via plate editor. Then we save this content in the backend into a mongo db.
We'd like to make sure that the given data doesn't contain any extra properties (danger of injection) in case someone wants to mess up our data.
I'm using nestjs in the backend and am trying with class-validator to get the validation working. I quickly realized that manually defining validators for every type (paragraph, image, heading, etc.) would be a lot of work with a big error probability.
How are you all validating the users' data?
Beta Was this translation helpful? Give feedback.
All reactions