ValidateThis/ValidateThis — pull request #66 by gregmoser (2011-11-24 01:04:05+00:00)
Title: Updated the Min & Max length defaults to 0.

I'm not sure why the default min & max length for the collectionSize validation method was set to 1. It seems to me that it makes more sense to have the validation start at 0. I have a requirement to have my validation start at min 0 and max 0 so It seems like it makes sense to have the rule look like this:

This rule is for our "Product Type" orm entity in an eCommerce application. Before we delete, I want to make sure that the one-to-many relationship of products is an empty array so that I don't leave any products out there without a product type.

I hope that this example makes sense.

-Greg