Class: Skooma::Objects::Base

Inherits:
JSONSkooma::JSONSchema
  • Object
show all
Includes:
ExternalRefs
Defined in:
lib/skooma/objects/base.rb,
lib/skooma/objects/base/keywords/tags.rb,
lib/skooma/objects/base/keywords/servers.rb,
lib/skooma/objects/base/keywords/summary.rb,
lib/skooma/objects/base/keywords/security.rb,
lib/skooma/objects/base/keywords/deprecated.rb,
lib/skooma/objects/base/keywords/description.rb

Direct Known Subclasses

MediaType, OpenAPI, Operation, RefBase

Defined Under Namespace

Modules: Keywords

Constant Summary collapse

DEFAULT_OPTIONS =
{
  registry: REGISTRY_NAME
}.freeze

Instance Method Summary collapse

Methods included from ExternalRefs

#resolve_ref

Constructor Details

#initialize(value, **options) ⇒ Base

Returns a new instance of Base.



12
13
14
# File 'lib/skooma/objects/base.rb', line 12

def initialize(value, **options)
  super(value, **DEFAULT_OPTIONS.merge(options))
end

Instance Method Details

#bootstrap(value) ⇒ Object



16
17
18
# File 'lib/skooma/objects/base.rb', line 16

def bootstrap(value)
  # nothing to do
end

#json_schema_dialect_uriObject



24
25
26
# File 'lib/skooma/objects/base.rb', line 24

def json_schema_dialect_uri
  root.json_schema_dialect_uri
end

#kw_classesObject



20
21
22
# File 'lib/skooma/objects/base.rb', line 20

def kw_classes
  []
end