Collections

MinCollectionSize

Validator that ensures a collection has at least a specified minimum size.

Parameters:

  • minSize - The minimum required number of items in the collection.

MaxCollectionSize

Validator that ensures a collection does not exceed a specified maximum size.

Parameters:

  • maxSize - The maximum allowed number of items in the collection.

CollectionSizeBetween

Validator that ensures a collection's size is within a specified range (inclusive).

Parameters:

  • minSize - The minimum number of items required in the collection.

  • maxSize - The maximum number of items allowed in the collection.

Last updated