mnfst / manifest

A Whole Backend That Fits Into 1 YAML file. ⭐ to support the project !
https://manifest.build
MIT License
781 stars 49 forks source link

Client-side admin panel validation logic #143

Open brunobuddy opened 1 month ago

brunobuddy commented 1 month ago

The admin panel create and edit views should integrate the validation logic from the entity manifest.

Key points are the following:

I considered also having live validation for custom validators but it is a huge work as we have 12 types x 30+ validators. It is not worth it right now

brunobuddy commented 1 month ago

We could also add specific attributes to inputs based on validators. Examples: Numbers fields with min/max validators can have a "min" and "max" html attribute to the input.