Open APIs

 View Only
  • 1.  Polymorphic Extension

    TM Forum Member
    Posted Jul 02, 2020 10:56
    Hello,
    I have two simple doubts concerning the use of the Polymorphic extension:

    1) @schemaLocation: 
    Is it an output field, input field or, can it be both?
    The assumption is that, we start from a base TMF definition (let's say around Service Specification) and, then, we extend it (so, our @type will point to this extended class) and finally, the @schemaLocation will point the format of this extended data. Is this correct?

    2) @baseType:
    Is it correct to assume that we'll always point to the element as defined in the TMF specficiation?
    In other words, can we have the @baseType pointing to an already extended element?

    Thanks and Regards.



    ​​​​​

    ------------------------------
    Marcos Donato da Silva
    Ericsson Inc.
    ------------------------------


  • 2.  RE: Polymorphic Extension

    TM Forum Member
    Posted Jul 08, 2020 19:50
     @schemaLocation:  This field has to provide the URI of the location of the Yaml file where the schema definition is stored. 
    If you are extending the base type, then you must provide the reference of the schema. 
    I didn't understand what you meant by output field, input field etc. This is populated done by the object designer. e.g. Extension of service specification performed by a service designer.

    2) @baseType: Yes, it is best to point to the base type provided by the TMF specification.
    While you can extend on another extended element, it will make your environment more complex and difficult to version manage. 


    ------------------------------
    Varun Nair
    Telstra Corporation
    ------------------------------



  • 3.  RE: Polymorphic Extension

    Posted Jul 16, 2020 12:11

    Good morning Marcos,

    We do encountered the same problem, and we discussed it with other members here, feel free to check if it can helps you !

    https://engage.tmforum.org/communities/community-home/digestviewer/viewthread?GroupId=31&MessageKey=5921f38f-6376-4f54-a4ad-d463a47940d2&CommunityKey=d543b8ba-9d3a-4121-85ce-5b68e6c31ce5&tab=digestviewer&ReturnUrl=%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3dd543b8ba-9d3a-4121-85ce-5b68e6c31ce5%26tab%3ddigestviewer



    ------------------------------
    jonathan schoreels
    VOO SA
    ------------------------------