Skip to content

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 ​

ParameterType
schemaNodeany
ctxSchemaContext

Returns ​

number