Open APIs

 View Only

Issues Found During TMF638 v5 CTK Testing

  • 1.  Issues Found During TMF638 v5 CTK Testing

    TM Forum Member
    Posted Aug 05, 2025 10:09
    Edited by David Xie Aug 05, 2025 10:19

    Dear all,

    We are currently testing our TMF638 v5 implementation against the latest CTK (TMF638 v5.0.0) and have encountered the following two issues:


    1. POST/GET URL Handling

    The CTK appends an extra "/" to the URL, causing incorrect request formatting.

    • Issue Location: DO_NOT_CHANGE/cypress/support/commands/routes.js

    • Root Cause: The params argument is not passed by Cypress during the test. As a result, the default value "" is used, which leads to an unwanted "/" being added to the URL.

    Relevant Code:

    // Line 14
    url: route + '/' + params
    
    // Line 25
    url: path + '/' + params + query
    

    2. Place Validation Error

    • Location: /place/0/place

    • Error Message: must match exactly one schema in oneOf

    Analysis:

    As seen in lines 12–17 of DO_NOT_CHANGE/cypress/support/commands/validate.js, the CTK explicitly removes discriminator definitions. This affects the validation of the Place resource.

    The relevant schemas (GeographicLocation, GeographicSite, GeographicAddress, PlaceRef) only require @type and id. Without the discriminator, the oneOf logic breaks, resulting in a validation failure for PlaceRef.

    The issue can be consistently reproduced using JSON samples from the TMF638 specification or the included request payloads.


    Please let us know if you need further details or examples to reproduce the issues.

    Thank you in advance for any suggestion or help.

    Best regards,
    ------------------------------
    David Xie
    Hansen Technologies
    ------------------------------