module JsonSchema

Public Class Methods

configuration() click to toggle source
# File lib/json_schema.rb, line 15
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/json_schema.rb, line 11
def self.configure
  yield configuration
end
parse(data) click to toggle source
# File lib/json_schema.rb, line 19
def self.parse(data)
  parser = Parser.new
  if schema = parser.parse(data)
    [schema, nil]
  else
    [nil, parser.errors]
  end
end
parse!(data) click to toggle source
# File lib/json_schema.rb, line 28
def self.parse!(data)
  Parser.new.parse!(data)
end