OCCURS min TO max TIMES DEPENDING ON object

The number of occurrences of an item with this clause depends on the value of the DEPENDING ON clause.

Parsing

During parsing, the number of occurrences is determined by the value of the object in the binary data. If the value of the object is not in the min:max range an error occurs.

Rendering

The number of occurrences rendered is determined by the value of the object in the input JSON. The number of supplied occurrences need not match the value of the object. Note that the value of the object must comply with min and max limits or an error occurs.