text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const indicative_utils_1 = require("indicative-utils");
  const validation = {
      async: false,
      validate: (data, field, _args, config) => {
          const fieldValue = indicative_utils_1.getValue(data, field);
          if (indicative_utils_1.skippable(fieldValue, field, config)) {
              return true;
          }
          const castedValue = indicative_utils_1.cast(fieldValue, 'boolean');
          if (castedValue === null) {
              return false;
          }
          indicative_utils_1.patchValue(data, field, castedValue);
          return true;
      },
  };
  exports.default = validation;
  