a schema-based data validator for node