Open APIs

 View Only
  • 1.  Attribute name inconsistencies

    TM Forum Member
    Posted Sep 09, 2024 11:27

    While working for oneof the business use case, when i was referring to TMF 717: Customer360

    object MediumCharacteristic has an attribute postCode (camel case).

    But the same attribute in TMF673 - GeographicAddress is represented as postcode (small case). 

    There are multiple APIs that uses these objects by reference and by value and hence carrying over this inconstancy in them.

    looking at all other attributes camel-case seems to be right way.

    thoughts??



    ------------------------------
    Amol Mozarkar
    Solution Architect
    Member of Global Association of Enterprise Architects (globalaea.org)
    Bell Canada
    ------------------------------


  • 2.  RE: Attribute name inconsistencies

    TM Forum Member
    Posted Sep 10, 2024 06:51

    you can read the API user guide (TMF 630).

    2.3  Resource Naming Convention

    Names in URI (tasks, individual resources, etc.) MUST be camel case or lower case.

    e.g. /account/billSummary/billDetail or /account/billSummary/billdetail



    ------------------------------
    Kind regards,

    Matthieu Hattab
    Lyse Platform
    ------------------------------



  • 3.  RE: Attribute name inconsistencies

    TM Forum Member
    Posted Sep 11, 2024 09:16

    Hi Matthieu,

    Yes, you are right, the TMF 630 contains the Resource Naming Convention subsection. But question was not about resource naming but about attribute naming. And, unfortunately, TMF 630 does not provide any suggestions for attribute naming.

    Based on the fact that the TMF OpenAPIs de-facto use camelCase for attribute naming, I would suggest renaming the "postcode" attribute (lowercase notation) to "postCode" (camelCase notation) in the TMF 637 Geographic Address Management API to be consistent with other TMF APIs. At least it can be done for the v5 of the TMF 637 API specification.



    ------------------------------
    Yurii Yushchak
    System Manager
    Ericsson Inc.
    ------------------------------



  • 4.  RE: Attribute name inconsistencies

    TM Forum Member
    Posted Sep 11, 2024 10:56

    it's the same guideline. camelcase is also used for attributes.



    ------------------------------
    Kind regards,

    Matthieu Hattab
    Lyse Platform
    ------------------------------



  • 5.  RE: Attribute name inconsistencies

    TM Forum Member
    Posted Sep 24, 2025 23:02

    Hi Matthieu, 

    Just to be pedantic  - how should we treat attributes that are provided as name–value pairs? Is there any guideline on this. 

    Technically, in those cases the attribute name itself is actually the value of the "name" field within the JSON payload.

    I also see a different thread - Urgent: Guidelines for using Camel Case or Lower Case for TMF API's | Open APIs but it's unclear whether this is any guideline. 

    Would appreciate your clarification for attributes like below.

                    "serviceCharacteristic": [
                        {
                            "name": "product_instance_id",
                            "value": "484472"
                        },

    Regards

    Anuraag 



    ------------------------------
    Anuraag Gupta
    Singtel Optus Pty Limited
    ------------------------------



  • 6.  RE: Attribute name inconsistencies

    TM Forum Member
    Posted Sep 25, 2025 03:40

    Hi,

    TMF APIs treat these as Characteristic objects. The attribute name is the value of the name property, not a JSON field name. This means there is no global mandate on casing.



    ------------------------------
    Kind regards,

    Matthieu Hattab
    Digital Sales Domain Architect
    Lyse Tele AS
    ------------------------------