module Jimmy

Jimmy makes declaring and validating against JSON schemas a piece of cake.

Constants

ROOT
VERSION

Public Class Methods

Schema(schema) click to toggle source

Passes schema to Schema.new, unless it is already a {Schema}, in which case it is returned unmodified. @param [Schema, Object] schema @return [Schema]

# File lib/jimmy.rb, line 25
def self.Schema(schema) # rubocop:disable Naming/MethodName
  schema.is_a?(Schema) ? schema : Schema.new(schema)
end
schemer(*args, **opts) click to toggle source

@see SchemerFactory#initialize

# File lib/jimmy.rb, line 17
def self.schemer(*args, **opts)
  SchemerFactory.new(*args, **opts).schemer
end