Sha256: 6b32d61479b887d43623411c6b156d26f8b2d6ed7b2624bf20e8a89670c75409

Contents?: true

Size: 306 Bytes

Versions: 1

Compression:

Stored size: 306 Bytes

Contents

require "vpnconfig/version"
require 'kwalify'

module Vpnconfig
  class Validator
    def validate_yaml(yaml)
      schema = Kwalify::Yaml.load_file('lib/vpn-configuration-schema.yaml')
      validator = Kwalify::Validator.new(schema)
      errors = validator.validate(yaml)
      errors
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vcloud_ipsec-vpn-0.1.0 lib/validator.rb