# The function checks a value against both the target_type (new) and the previous_validation function (old).
dispatch:validate_legacydo
param'Any',:scope
param'Type',:target_type
param'String',:function_name
param'Any',:value
repeated_param'Any',:args
end
dispatch:validate_legacy_sdo
param'Any',:scope
param'String',:type_string
param'String',:function_name
param'Any',:value
repeated_param'Any',:args
end
# Workaround PUP-4438 (fixed: https://github.com/puppetlabs/puppet/commit/e01c4dc924cd963ff6630008a5200fc6a2023b08#diff-c937cc584953271bb3d3b3c2cb141790R221) to support puppet < 4.1.0 and puppet < 3.8.1.