class Schemacop::Schema3

Public Class Methods

new(*args, **kwargs, &block) click to toggle source
Calls superclass method
# File lib/schemacop/schema3.rb, line 3
def initialize(*args, **kwargs, &block)
  super()
  @root = V3::Node.create(*args, **kwargs, &block)
end

Public Instance Methods

as_json() click to toggle source
# File lib/schemacop/schema3.rb, line 17
def as_json
  root.as_json
end
validate(data) click to toggle source

Validate data for the defined Schema

@param data The data to validate. @return [Schemacop::Collector] The object that collected errors

throughout the validation.
# File lib/schemacop/schema3.rb, line 13
def validate(data)
  root.validate(data)
end