Open APIs

Expand all | Collapse all

Polymorphic Extension

  • 1.  Polymorphic Extension

    TM Forum Member
    Posted Jul 02, 2020 10:56
    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 30 days ago
     @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

    TM Forum Member
    Posted 22 days ago

    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 !

    jonathan schoreels
    VOO SA