Class: EmptyObjectMembersValidation

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

Constant Summary

Constants included from Inspectable

Inspectable::INSPECTING_KEY

Instance Method Summary collapse

Methods inherited from ObjectMembersValidation

memoized_new_from_pattern

Methods included from HashInitialized

#initialize

Methods included from Inspectable

#inspect

Instance Method Details

#to_sObject



739
740
741
# File 'lib/json_patterns.rb', line 739

def to_s
  ''
end

#validate_members(path, data) ⇒ Object

TODO: Handle first_name/value methods?



732
733
734
735
736
737
# File 'lib/json_patterns.rb', line 732

def validate_members(path, data)
  ObjectMembersValidationResult.new(
    failures: [],
    remainder: data,
  )
end