lib/swaggard/swagger/definition.rb in swaggard-0.0.4 vs lib/swaggard/swagger/definition.rb in swaggard-0.1.0
- old
+ new
@@ -13,10 +13,12 @@
@properties << property
end
def to_doc
{
- 'properties' => Hash[@properties.map { |property| [property.id, property.to_doc] }]
+ 'type' => 'object',
+ 'required' => [],
+ 'properties' => Hash[@properties.map { |property| [property.id, property.to_doc] }]
}
end
end
end
\ No newline at end of file