Skip to content

Cardinality

Captures the cardinality and ordinality of a relationship. Cardinality defines the number of occurrences of one entity that are associated with the number of occurrences of another entity through a relationship.

Source of truth: Cardinality.cs

JSON nameTypeDescription
idstringOptional identifier as a string value to allow various identifier approaches.
namestringOptional name for a recognised cardinality construct, for example “one-to-one”, “one-to-many”, or “many-to-many”. E.g. one-to-one corresponds to {“fromRange”: {“min”: “1”, “max”: “1”}, “toRange”: {“min”: “1”, “max”: “1”}}.
fromRangeCardinalityRangeThe ‘from’ component of the cardinality (e.g. the ‘1’ in 1-to-many).
toRangeCardinalityRangeThe ‘to’ component of the cardinality (e.g. the ‘many’ in 1-to-many).
classificationsarray of DataClassificationFree-form and optional classification for the Cardinality for use in generation logic (evaluation).
extensionsarray of ExtensionThe collection of extension Key/Value pairs.
notesstringFree-format notes.