code: function addDepsError(ctx, type, propName, testValue) {
  
  	let depsErrors = ctx[DEPS_ERRORS];
  	if (!depsErrors)
  		depsErrors = ctx[DEPS_ERRORS] = {};
  
  	const curPtrStr = ctx.currentPointer.toString();
  
  	if (depsErrors[curPtrStr])
  		return;
  	depsErrors[curPtrStr] = true;
  
  	const hasTestValue = (testValue !== undefined);
  	const testValueIsPattern = (testValue instanceof RegExp);
  	ctx.addError(
  		(
  			hasTestValue ? (
  				testValueIsPattern ? `{${type}Pattern}`
  					: `{${type}Value}`
  			) : `{${type}}`
  		), {
  			prop: propName,
  			[testValueIsPattern ? 'pattern' : 'value']: testValue
  		}
  	);
  }
docs: Add dependecy validator error to the context if no dependency validator errors
  already added for the current property.
  
  @private
  @param {module:x2node-validators~ValidationContext} ctx Current validation
  context.
  @param {string} type Validator type.
  @param {string} propName Dependency property name.
  @param {(*|RegExp)} testValue Dependecy property test value.