Module: Mountapi::Schema::Base::ClassMethods

Defined in:
lib/mountapi/schema/base.rb

Overview

class extensions

Instance Method Summary collapse

Instance Method Details

#to_json_schema(key_name, value) ⇒ Hash{String => Object}

For a given key name , transform value to json schema Override this method for custom value transformation



26
27
28
# File 'lib/mountapi/schema/base.rb', line 26

def to_json_schema(key_name, value)
  { key_name => value }
end