async function validateStatus(
  argument,
  matchedConditionPath,
  templateConfig
) {
  const validation = templateConfig.conditionalGeneration?.[matchedConditionPath]?.validate || templateConfig.conditionalFiles?.[matchedConditionPath]?.validate;
  if (!validation) {
    return false; 
  }
 
  const isValid = validation(argument);

  if (!isValid) {
    if (templateConfig.conditionalGeneration?.[matchedConditionPath]) {
      log.debug(logMessage.conditionalGenerationMatched(matchedConditionPath));
    } else {
      // conditionalFiles becomes deprecated with this PR, and soon will be removed.
      // TODO: https://github.com/asyncapi/generator/issues/1553
      log.debug(logMessage.conditionalFilesMatched(matchedConditionPath));
    }
 
    return false;
  }
  return true;
}
Validates the argument value based on the provided validation schema.

@param {any} argument The value to validate.
@param {String} matchedConditionPath The matched condition path.
@param {Object} templateConfig - The template configuration containing conditional logic.
@return {Promise<Boolean>} A promise that resolves to false if the generation should be skipped, true otherwise.