Open APIs

 View Only
Expand all | Collapse all

Account Relationship and Account Cardinality showing as Account Relationship(0..*) --> (0..1) Account

  • 1.  Account Relationship and Account Cardinality showing as Account Relationship(0..*) --> (0..1) Account

    TM Forum Member
    Posted Mar 14, 2023 10:13
      |   view attached

    As per the snapshot, account relationship is showing as existing without any account --> Account Relationship(0..*) --> (0..1) Account which does not seem to be a valid case.

    can you help as which scenario can be here?



    ------------------------------
    Ashish Sharma
    Bharti Airtel Ltd
    ------------------------------


  • 2.  RE: Account Relationship and Account Cardinality showing as Account Relationship(0..*) --> (0..1) Account

    TM Forum Member
    Posted Mar 14, 2023 13:32

    Hi Ashish
    This diagram looks like it's come from an old API specification.

    But in any case, in TMF Open API user guide diagrams, the source cardinality of an association is always 1, practically, since the association is represented in JSON schema by a property of type ref or an array of refs. The property is by definition contained in the resource. In your example, accountRelationship is a property of Account, so it is always there. The target cardinality is genuine, will be 1, 0..1, *, 0..*, according to the nature of the property.

    Hope it helps



    ------------------------------
    Jonathan Goldberg
    Amdocs Management Limited
    Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
    ------------------------------