Open APIs

 View Only
Expand all | Collapse all

May I submit TMF641_Service_Ordering_Management_API_v4.1.0_swagger.json to an issue of OpenAPI generator?

  • 1.  May I submit TMF641_Service_Ordering_Management_API_v4.1.0_swagger.json to an issue of OpenAPI generator?

    Posted yesterday

    TMF641_Service_Ordering_Management_API_v4.1.0_swagger.json when used to generate Spring REST servers with OpenAPI generator encounters few troubles.

    For example, a default POST done with the example values leads to:

    ```log

    Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot construct instance of `org.openapitools.model.ServiceRefOrValue` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('string'); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `org.openapitools.model.ServiceRefOrValue` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('string')<EOL> at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 238, column: 24] (through reference chain: org.openapitools.model.ServiceOrderCreate["serviceOrderItem"]->java.util.ArrayList[0]->org.openapitools.model.ServiceOrderItem["service"]->org.openapitools.model.ServiceRefOrValue["serviceRelationship"]->java.util.ArrayList[0]->org.openapitools.model.ServiceRelationship["service"])]

    ```

    OpenAPI generator has chances to be involved in this trouble. I'm a contributor of it, willing to study this problem and maybe prepare a patch for it.

    For this, it would be useful to me to be allowed to push in their issues ressources the problematic json schema that causes the trouble.

    Am I allowed to do so?

    Thanks!



    ------------------------------
    Marc LE BIHAN
    Airbus
    ------------------------------


  • 2.  RE: May I submit TMF641_Service_Ordering_Management_API_v4.1.0_swagger.json to an issue of OpenAPI generator?

    Posted 8 hours ago

    Hi Marc,

    I'm not speaking on behalf of the TMForum - but I know that all TMF v4 Swaggers and v5 OAS files are published under the Apache V2 license - so free to distribute?



    ------------------------------
    Stephen Harrop
    Principal Integration Architect
    Vodafone Group
    ------------------------------