Function: getMaxOccurrences()
ts
function getMaxOccurrences(schemaNode, ctx): number;Defined in: domain/shadow-model.ts:470
Maximum number of items for a schema node, from maxItems or x-sidedoc.maxOccurrences. Returns Infinity when unbounded (missing or negative).
Parameters
| Parameter | Type |
|---|---|
schemaNode | any |
ctx | SchemaContext |
Returns
number