ReadonlykindDiscriminator identifying this as a set shape.
Inheritance — cannot be overridden.
ReadonlymodelPrototype value for runtime model assembly.
Scalar value sets hold the shape model directly; multi-valued sets hold a singleton [element] tuple.
Dictionary shapes always hold a single language map because cardinality
applies per tag within the map, not to the map itself. The type is unioned with undefined
when minCount is 0 or undefined, reflecting the optional arm on the template side. See
Bounds for the projection rules.
Inheritance — computed from shape and cardinality, not user-defined.
Optional ReadonlyminMinimum number of expected values.
Inheritance — child value must be ≥ parent value, narrowing the minimum cardinality.
Optional ReadonlymaxMaximum number of expected values.
Inheritance — child value must be ≤ parent value, narrowing the maximum cardinality.
ReadonlyshapeThe constrained value shape, or a union of value shapes for polymorphic values.
Inheritance — child shape.kind must match parent shape.kind, with one exception: when parent is a
union, child may supply a non-union value shape that narrows exactly one parent variant
(single-variant narrowing). Otherwise delegated to value shape or union merge rules.
Shape for a cardinality-constrained value set.
Pairs a Shape with minCount / maxCount constraints that bound the expected number of values. Cardinality factory functions (required, optional, repeatable, and multiple) produce instances with pre-set bounds; use cardinality for custom ranges.
Usage
Inheritance
When a ResourceShape extends a parent via extends, each set shape is merged according to the following rules.
kindminCountmaxCountshapekindmust match; a non-union child may narrow a union parent to oneCross-Field Validation
minCountmust be ≤ mergedmaxCountSee