Module: Config::Validation::Validate

Included in:
Options
Defined in:
lib/config/validation/validate.rb

Instance Method Summary collapse

Instance Method Details

#validate!Object



6
7
8
9
10
11
12
13
# File 'lib/config/validation/validate.rb', line 6

def validate!
  return unless Config.validation_contract || Config.schema

  Config::DryValidationRequirements.load_dry_validation!

  validate_using!(Config.validation_contract)
  validate_using!(Config.schema)
end