Class: JSONSchemer::Draft202012::Vocab::Core::Ref
- Inherits:
-
Keyword
- Object
- Keyword
- JSONSchemer::Draft202012::Vocab::Core::Ref
show all
- Defined in:
- lib/json_schemer/draft202012/vocab/core.rb
Constant Summary
Constants included
from Output
Output::FRAGMENT_ENCODE_REGEX
Instance Attribute Summary
Attributes inherited from Keyword
#parent, #parsed, #root, #value
Attributes included from Output
#keyword, #schema
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Keyword
#absolute_keyword_location, #error_key, #fetch, #initialize, #parsed_schema, #schema_pointer
Methods included from Output
#x_error
Class Method Details
.exclusive? ⇒ Boolean
54
55
56
|
# File 'lib/json_schemer/draft202012/vocab/core.rb', line 54
def self.exclusive?
false
end
|
Instance Method Details
#ref_schema ⇒ Object
62
63
64
|
# File 'lib/json_schemer/draft202012/vocab/core.rb', line 62
def ref_schema
@ref_schema ||= root.resolve_ref(ref_uri)
end
|
#ref_uri ⇒ Object
58
59
60
|
# File 'lib/json_schemer/draft202012/vocab/core.rb', line 58
def ref_uri
@ref_uri ||= URI.join(schema.base_uri, value)
end
|
#validate(instance, instance_location, keyword_location, context) ⇒ Object
66
67
68
|
# File 'lib/json_schemer/draft202012/vocab/core.rb', line 66
def validate(instance, instance_location, keyword_location, context)
ref_schema.validate_instance(instance, instance_location, keyword_location, context)
end
|