Method: JSONSchemer::Location.resolve

Defined in:
lib/json_schemer/location.rb

.resolve(location) ⇒ Object



16
17
18
# File 'lib/json_schemer/location.rb', line 16

def resolve(location)
  location[:resolve] ||= location[:parent] ? "#{resolve(location[:parent])}/#{escape_json_pointer_token(location[:name])}" : ''
end