Module: JSI::Schema::BigMoneyId
Overview
extends any schema which uses the keyword '$id' to identify its canonical URI
Instance Method Summary collapse
-
#id ⇒ #to_str?
the contents of a $id keyword whose value is a string, or nil.
Instance Method Details
#id ⇒ #to_str?
the contents of a $id keyword whose value is a string, or nil
41 42 43 44 45 46 47 |
# File 'lib/jsi/schema.rb', line 41 def id if keyword?('$id') && schema_content['$id'].respond_to?(:to_str) schema_content['$id'] else nil end end |