Class: JSI::Validation::Result

Inherits:
Object
  • Object
show all
Includes:
Util::FingerprintHash, Util::Virtual
Defined in:
lib/jsi/validation/result.rb

Overview

a result of validating an instance against schemas which describe it. virtual base class.

Direct Known Subclasses

FullResult, ValidityResult

Instance Method Summary collapse

Instance Method Details

#builder(schema, instance_ptr, instance_document, validate_only, visited_refs) ⇒ Object



75
76
77
78
79
80
81
82
83
84
# File 'lib/jsi/validation/result.rb', line 75

def builder(schema, instance_ptr, instance_document, validate_only, visited_refs)
  self.class::Builder.new(
    result: self,
    schema: schema,
    instance_ptr: instance_ptr,
    instance_document: instance_document,
    validate_only: validate_only,
    visited_refs: visited_refs,
  )
end

#valid?Boolean

is the instance valid against its schemas?

Returns:

  • (Boolean)


88
89
90
91
92
# File 'lib/jsi/validation/result.rb', line 88

def valid?
  # :nocov:
  virtual_method
  # :nocov:
end