Open APIs

TMF675: GeoLocation model makes generating server code difficult

  • 1.  TMF675: GeoLocation model makes generating server code difficult

    TM Forum Member
    Posted 7 days ago

    Hi,

    The GeoLocation model in The Geographic Location API (TMF675) is modelled as an extension of the Place model. The \@type on Place does not have enum restrictions, whereas the Geolocation has. 

    The code generator for Java now tries to generate GeograhicLocation as a subclass of Place overriding the property \@type, which is a string in Place and an enum in GeographicLocation.

    I  cannot see any reason for the use of the model Place. it is nowhere used in the service endpoints.

    I use the latest published version of the swagger file at https://raw.githubusercontent.com/tmforum-apis/TMF675_GeographicLocation/master/TMF675-GeographicLocation-v4.0.0.swagger.json

    Are there any plans to remove the Place model?​​



    ------------------------------
    Martin Goldhahn
    Altibox AS
    ------------------------------