(Quick Reference)

range

Purpose

Uses a Groovy range to ensure that a property's value occurs within a specified range

Examples

age(range:18..65)

Description

Set to a Groovy range which can contain numbers in the form of an IntRange, dates or any object that implements Comparable and provides next and previous methods for navigation. This constraint influences schema generation.

Error Code: className.propertyName.range.toosmall or className.propertyName.range.toobig