abstract/refactor rule for validating json schema