Open APIs

 View Only

Issue generating java models for TMF 637 Product Inventory using openapi-codegen

  • 1.  Issue generating java models for TMF 637 Product Inventory using openapi-codegen

    Posted 10 hours ago

    Hi All

    We are trying to generate client for the product inventory openapi specification v5 and facing inheritance issues using openapicodegen > spring mode. Anyone in the community has faced the same problem and got any resolution. The particular problem is around the 

    GeographicLocationFVO.java:[93,10] error: incompatible types: AtTypeEnum cannot be converted to String

    GeographicLocation.java:[135,30] error: getAtType() in GeographicLocation cannot override getAtType() in Place

    Note:

    The same GeographicLocation types defined under TMF673 are all compiling fine using openapicodegen. The enum has been corrected in GeographicSite specificaiton while its not corrected in ProductInventory.

    We are using the openapitools plugin to generate the models from yaml specification

    <groupId>org.openapitools</groupId>
    <artifactId>openapi-generator-maven-plugin</artifactId>
    <version>7.16.0</version>
    I have tried with the additional configurationoptions but still the same issue
    <useOneOfInterfaces>false</useOneOfInterfaces>
    <legacyDiscriminatorBehavior>true</legacyDiscriminatorBehavior>

    Is there any plans to align the inheritance issue caused in productInventory, productOrder openapi v5 specifications ?



    ------------------------------
    Raghavan TV
    Tata Consultancy Services
    ------------------------------