Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2131

starter-toolkit fails when generating a connector from openapi description

Details

    • All
    • Hide

       First part of fixing is done. Need some more work on different issues.

      Show
       First part of fixing is done. Need some more work on different issues.
    • Small

    Description

      Using the starter-toolkit to generate a connector from an openapi description:

      • it fails without error when the description is not conform. For instance, if the property openapi: 3.0.0 is missing.
      • with a large description the generated APIType in APIDataSet class is missing endpoints and does not compile:
            public enum APIType {
        
                protected void validateUrl(final APIDataSet config) {
                    if (config.getConnection() == null || config.getConnection().getBaseUrl() == null) {
                        throw new IllegalArgumentException("No base url set");
                    }
                }
        
                public abstract Response<JsonObject> call(APIDataSet config, APIClient client);
            }
        

      Attachments

        Issue Links

          Activity

            People

              emmanuel_g emmanuel gallois
              emmanuel_g emmanuel gallois
              emmanuel gallois
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: