Module: Schemacop

Defined in:
lib/schemacop.rb,
lib/schemacop/validator.rb

Defined Under Namespace

Modules: Exceptions Classes: Validator

Class Method Summary (collapse)

Class Method Details

+ (Object) validate!(schema, data)

Validates data against schema and throws an exception on missmatch.



4
5
6
# File 'lib/schemacop.rb', line 4

def self.validate!(schema, data)
  Validator.validate!(schema, data)
end