Class: SimpleSchema::SchemaProperties
- Inherits:
-
Object
- Object
- SimpleSchema::SchemaProperties
- 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, ) if schema[:properties] schema[:type] = :object schema[:properties] = Schema.new(schema[:properties], ).schema end schema end |