parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.92k stars 4.78k forks source link

Inbuilt Validator on Schema #7013

Open dblythy opened 3 years ago

dblythy commented 3 years ago

Is your feature request related to a problem? Please describe.

This might be overloading schema with features, however, it could provide some value to allow developers to set a validation object to a class, which will effectively run on beforeSave.

This could developers to validate the objects that are being saved, without any use of cloud code.

Potentially, this could extend to the dashboard, allowing developers to create validation by clicking through the validation options.

Related to this community discussion.

mtrezza commented 3 years ago

Thanks for suggesting.

This seems to be a useful feature for Parse Server. Do you have any specific solution in mind?