keepthatworktoyourself / wombat

Not another website builder. Public repo — raise issues, request features, get help.
2 stars 0 forks source link

Util that fills in missing/required props on deeply nested objects #404

Open pjrundle opened 5 months ago

pjrundle commented 5 months ago

Thinking something along the lines of:

const prepped = ensureValid(schema, object)

This could mean we don't have to apply so many db updates, and not have to litter the codebase with ?.prop etc.

Probably achieved by extending json_validate?