Class: JSI::MetaSchemaNode::Conf

Inherits:
Base::Conf show all
Defined in:
lib/jsi/metaschema_node.rb

Overview

Base::Conf with additional configuration for MetaSchemaNode.

Instance Attribute Summary collapse

Attributes inherited from Base::Conf

#after_initialize, #application_collect_evaluated_validate, #child_as_jsi, #child_use_default, #registry, #reinstantiate_nonschemas, #root_uri, #to_immutable

Instance Method Summary collapse

Constructor Details

#initialize(dialect:, metaschema_root_ref: '#', root_schema_ref: metaschema_root_ref, registry: nil, is_metaschema: DEFAULT_IS_METASCHEMA, **kw) ⇒ Conf

Returns a new instance of Conf.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/jsi/metaschema_node.rb', line 66

def initialize(
    dialect: ,
    metaschema_root_ref: '#',
    root_schema_ref: metaschema_root_ref,
    registry: nil, # overrides Base::Conf default value JSI.registry
    is_metaschema: DEFAULT_IS_METASCHEMA,
    **kw
)
  super(
    dialect: dialect,
    metaschema_root_ref: Util.uri(metaschema_root_ref, nnil: true),
    root_schema_ref: Util.uri(root_schema_ref, nnil: true),
    registry: registry,
    is_metaschema: is_metaschema,
    **kw,
  )
end

Instance Attribute Details

#bootstrap_registryRegistry?

Default: nil

Returns:



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/jsi/metaschema_node.rb', line 65

class Conf < Base::Conf
  def initialize(
      dialect: ,
      metaschema_root_ref: '#',
      root_schema_ref: metaschema_root_ref,
      registry: nil, # overrides Base::Conf default value JSI.registry
      is_metaschema: DEFAULT_IS_METASCHEMA,
      **kw
  )
    super(
      dialect: dialect,
      metaschema_root_ref: Util.uri(metaschema_root_ref, nnil: true),
      root_schema_ref: Util.uri(root_schema_ref, nnil: true),
      registry: registry,
      is_metaschema: is_metaschema,
      **kw,
    )
  end
end

#dialectSchema::Dialect

Returns:



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/jsi/metaschema_node.rb', line 65

class Conf < Base::Conf
  def initialize(
      dialect: ,
      metaschema_root_ref: '#',
      root_schema_ref: metaschema_root_ref,
      registry: nil, # overrides Base::Conf default value JSI.registry
      is_metaschema: DEFAULT_IS_METASCHEMA,
      **kw
  )
    super(
      dialect: dialect,
      metaschema_root_ref: Util.uri(metaschema_root_ref, nnil: true),
      root_schema_ref: Util.uri(root_schema_ref, nnil: true),
      registry: registry,
      is_metaschema: is_metaschema,
      **kw,
    )
  end
end

#metaschema_root_refAddressable::URI

URI reference to the root of the meta-schema.

Default: "#" resolves to the root of the jsi_document.

Returns:

  • (Addressable::URI)


65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/jsi/metaschema_node.rb', line 65

class Conf < Base::Conf
  def initialize(
      dialect: ,
      metaschema_root_ref: '#',
      root_schema_ref: metaschema_root_ref,
      registry: nil, # overrides Base::Conf default value JSI.registry
      is_metaschema: DEFAULT_IS_METASCHEMA,
      **kw
  )
    super(
      dialect: dialect,
      metaschema_root_ref: Util.uri(metaschema_root_ref, nnil: true),
      root_schema_ref: Util.uri(root_schema_ref, nnil: true),
      registry: registry,
      is_metaschema: is_metaschema,
      **kw,
    )
  end
end

#root_schema_refAddressable::URI

URI reference to the schema describing the root of the jsi_document. When schemas of the meta-schema are in multiple documents, this describes the roots of all instantiated documents.

Default: metaschema_root_ref value, i.e. the document root is a schema.

Returns:

  • (Addressable::URI)


65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/jsi/metaschema_node.rb', line 65

class Conf < Base::Conf
  def initialize(
      dialect: ,
      metaschema_root_ref: '#',
      root_schema_ref: metaschema_root_ref,
      registry: nil, # overrides Base::Conf default value JSI.registry
      is_metaschema: DEFAULT_IS_METASCHEMA,
      **kw
  )
    super(
      dialect: dialect,
      metaschema_root_ref: Util.uri(metaschema_root_ref, nnil: true),
      root_schema_ref: Util.uri(root_schema_ref, nnil: true),
      registry: registry,
      is_metaschema: is_metaschema,
      **kw,
    )
  end
end