Class: ValidationAmbiguity

Inherits:
ValidationFailure show all
Defined in:
lib/json_patterns.rb

Constant Summary

Constants included from Inspectable

Inspectable::INSPECTING_KEY

Instance Attribute Summary collapse

Attributes inherited from ValidationFailure

#path

Instance Method Summary collapse

Methods inherited from ValidationFailure

#path_to_s, #to_json

Methods included from HashInitialized

#initialize

Methods included from DeepEquality

#==

Methods included from Inspectable

#inspect

Instance Attribute Details

#foundObject (readonly)

Returns the value of attribute found.



239
240
241
# File 'lib/json_patterns.rb', line 239

def found
  @found
end

#overlapping_patternsObject (readonly)

Returns the value of attribute overlapping_patterns.



239
240
241
# File 'lib/json_patterns.rb', line 239

def overlapping_patterns
  @overlapping_patterns
end

Instance Method Details

#to_sObject



241
242
243
244
# File 'lib/json_patterns.rb', line 241

def to_s
  overlapping_patterns = @overlapping_patterns.to_a.join(', ')
  return "ambiguous patterns at #{path_to_s}; found #{@found}; overlapping patterns: #{overlapping_patterns}"
end