Method: JSONSchemer::Schema#schema_pointer

Defined in:
lib/json_schemer/schema.rb

#schema_pointerObject


285
286
287
288
289
290
291
292
293
# File 'lib/json_schemer/schema.rb', line 285

def schema_pointer
  @schema_pointer ||= if !parent
    ''
  elsif keyword
    "#{parent.schema_pointer}/#{escaped_keyword}"
  else
    parent.schema_pointer
  end
end