Open APIs

 View Only
  • 1.  TMF622 Order Item Relationship fields not mandatory

    TM Forum Member
    Posted Nov 08, 2019 05:26
    ProductRelationship and OrderItemRelationship have similar fields - Id of referred entity and Relation Type.
    While in ProductRelationship, these two fields are marked as Required but not for OrderItemRelationship.

    Is there any reason for this?
    I think these should be mandatory.

    ------------------------------
    Prashantkumar Sonawane
    Amdocs Management Limited
    ------------------------------


  • 2.  RE: TMF622 Order Item Relationship fields not mandatory

    TM Forum Member
    Posted Nov 09, 2019 13:57
    We currently have two patterns in the Open API model for relationships from one entity to another entity of defined type via an association class:
    • The xxxxxRelationship entity includes id and href attributes, these attributes are the id and the href of the target entity (not of the xxxxxRelationship entity itself) - in this case the id should be mandatory
    • The xxxxxRelationship entity includes an association to the xxxxxxx entity (as xxxxxxRef) - in this case the association cardinality should be 1..1 so that the xxxxxxRef is mandatory.
    In either case, the attribute xxxxxRelationship.relationshipType should be mandatory.

    @Ludovic Robert - what do you think?​​​

    ------------------------------
    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.
    ------------------------------



  • 3.  RE: TMF622 Order Item Relationship fields not mandatory

    TM Forum Member
    Posted Nov 11, 2019 05:26
    Hello,
    Yes you're right: relationshipType must be mandatory in OrderItemRelationship. It is specified as this in the specification (see POST operation description) and in the Conformance Profile. I will check the Swagger.

    Thanks

    Ludovic


    ------------------------------
    Ludovic Robert
    Orange
    My answer are my own & don't represent necessarily my company or the TMF
    ------------------------------