lib/render/attributes/attribute.rb in render-0.1.1 vs lib/render/attributes/attribute.rb in render-0.1.2

- old
+ new

@@ -41,10 +41,10 @@ self.types = [Type.parse!(options[:type])].flatten self.format = Type.parse(options[:format]) if (options[:enum]) self.enums = options[:enum] - self.format = Type::Enum + self.types = [Type::Enum] end @default = options[:default] self.min_length = options[:minLength] self.max_length = options[:maxLength]