setMaxArrayItems

public final void setMaxArrayItems(int value)

When greater than zero, bounds the number of items of arrays in the generated schema. Emitted as a maxItems constraint when the target dialect supports it, and as description text otherwise (the portable and Anthropic dialects reject maxItems). Zero (default) leaves arrays unbounded.

Parameters

value

The value to set for the MaxArrayItems property.