Class: SimpleSchema::SchemaProperties

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_schema/schema_properties.rb

Class Method Summary collapse

Class Method Details

.build(schema, options) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/simple_schema/schema_properties.rb', line 3

def self.build(schema, options)
  if schema[:properties]
    schema[:type] = :object
    schema[:properties] = Schema.new(schema[:properties], options).schema
  end
  schema
end