(Quick Reference)

maxSize

Purpose

Ensures a value’s size does not exceed a maximum value.

Examples

children maxSize: 25

Description

Sets the maximum size of a collection or number property.

This constraint influences schema generation.

Error Code: className.propertyName.maxSize.exceeded