jsreport / jsreport-core

The minimalist jsreport rendering core
GNU Lesser General Public License v3.0
86 stars 24 forks source link

add general insert/update listener that validates entity according to model #42

Closed bjrmatos closed 5 years ago

bjrmatos commented 5 years ago

we have json schema auto-generated by the type definition in the model of an entity, we can use that to validate and sanitize values generally, similar to what we do for the req.template before rendering

bjrmatos commented 5 years ago

this should avoid manually registering listeners that just sanitize values, like the one here