Module: JSI
- Defined in:
- lib/jsi.rb,
lib/jsi/base.rb,
lib/jsi/json.rb,
lib/jsi/util.rb,
lib/jsi/schema.rb,
lib/jsi/version.rb,
lib/jsi/jsi_coder.rb,
lib/jsi/json/node.rb,
lib/jsi/base/to_rb.rb,
lib/jsi/metaschema.rb,
lib/jsi/pathed_node.rb,
lib/jsi/simple_wrap.rb,
lib/jsi/json/pointer.rb,
lib/jsi/schema_classes.rb,
lib/jsi/metaschema_node.rb,
lib/jsi/typelike_modules.rb,
lib/schemas/json-schema.org/draft-04/schema.rb,
lib/schemas/json-schema.org/draft-06/schema.rb
Defined Under Namespace
Modules: Arraylike, BaseArray, BaseHash, FingerprintHash, Hashlike, JSON, Memoize, Metaschema, PathedArrayNode, PathedHashNode, PathedNode, Schema, SchemaClasses, SchemaModule, SchemaModulePossibly, SimpleWrap, Typelike, Util Classes: Base, Bug, JSICoder, MetaschemaNode, NotASchemaModule
Constant Summary collapse
- ROOT_PATH =
Pathname.new(__FILE__).dirname.parent.
- RESOURCES_PATH =
ROOT_PATH.join('resources')
- VERSION =
"0.3.0".freeze
- JSONSchemaOrgDraft04 =
MetaschemaNode.new(schema_content).jsi_schema_module
- JSONSchemaOrgDraft06 =
MetaschemaNode.new(schema_content).jsi_schema_module
Constants included from Util
Class Method Summary collapse
-
.class_for_schema(*a, &b) ⇒ Class subclassing JSI::Base
A JSI class which represents the given schema.
Methods included from Util
deep_stringify_symbol_keys, stringify_symbol_keys, ycomb
Methods included from Memoize
Class Method Details
.class_for_schema(*a, &b) ⇒ Class subclassing JSI::Base
Returns a JSI class which represents the given schema. instances of the class represent JSON Schema instances for the given schema.
41 42 43 |
# File 'lib/jsi.rb', line 41 def self.class_for_schema(*a, &b) SchemaClasses.class_for_schema(*a, &b) end |