Module: JSI::SchemaModule::MetaSchemaModule
- Included in:
- JSONSchemaDraft04, JSONSchemaDraft06, JSONSchemaDraft07
- Defined in:
- lib/jsi/schema_classes.rb
Overview
A module to extend the JSI::SchemaModule of a schema which describes other schemas (a JSI::Schema::MetaSchema)
Instance Method Summary collapse
-
#new_schema(schema_content, **kw) { ... } ⇒ JSI::Base subclass + JSI::Schema
Instantiates the given schema content as a JSI Schema.
-
#new_schema_module(schema_content, **kw, &block) ⇒ JSI::SchemaModule
Instantiates the given schema content as a JSI Schema, passing all params to JSI::Schema::MetaSchema#new_schema, and returns its JSI Schema Module.
- #schema_implementation_modules ⇒ Set<Module>
Instance Method Details
#new_schema(schema_content, **kw) { ... } ⇒ JSI::Base subclass + JSI::Schema
Instantiates the given schema content as a JSI Schema.
81 82 83 |
# File 'lib/jsi/schema_classes.rb', line 81 def new_schema(schema_content, **kw, &block) schema.new_schema(schema_content, **kw, &block) end |
#new_schema_module(schema_content, **kw, &block) ⇒ JSI::SchemaModule
Instantiates the given schema content as a JSI Schema, passing all params to JSI::Schema::MetaSchema#new_schema, and returns its JSI Schema Module.
86 87 88 |
# File 'lib/jsi/schema_classes.rb', line 86 def new_schema_module(schema_content, **kw, &block) schema.new_schema(schema_content, **kw, &block).jsi_schema_module end |
#schema_implementation_modules ⇒ Set<Module>
91 92 93 |
# File 'lib/jsi/schema_classes.rb', line 91 def schema_implementation_modules schema.schema_implementation_modules end |