lib/render/schema.rb in render-0.0.6 vs lib/render/schema.rb in render-0.0.7
- old
+ new
@@ -23,10 +23,10 @@
Render.logger.debug("Loading #{definition_or_title}")
self.definition = determine_definition(definition_or_title)
title_or_default = definition.fetch(:title, DEFAULT_TITLE)
self.title = title_or_default.to_sym
- self.type = Type.parse!(definition[:type])
+ self.type = Type.parse(definition[:type]) || Object
self.universal_title = definition.fetch(:universal_title, nil)
if definition.keys.include?(:items)
self.array_attribute = ArrayAttribute.new(definition)
else