lib/render/array_attribute.rb in render-0.0.3 vs lib/render/array_attribute.rb in render-0.0.4

- old
+ new

@@ -8,11 +8,11 @@ def initialize(options = {}) super self.name = options.fetch(:title, :render_array_attribute_untitled).to_sym - options = options[:items] + options = options.fetch(:items) self.type = Render.parse_type(options[:type]) self.format = Render.parse_type(options[:format]) rescue nil self.enums = options[:enum] if options.keys.include?(:properties) @@ -42,11 +42,10 @@ archetype ? nil : {} end end def lower_limit - # lower_limit = (required ? 1 : 0) - 1 + required ? 1 : 0 end end end