Modular declarative object validation for node