camunda-community-hub / openapi-connector-template-generator

Apache License 2.0
8 stars 2 forks source link

Empty files produced for Open Banking API #4

Open falko opened 1 year ago

falko commented 1 year ago

I tried to generate element templates for the Open Banking API exposed here: https://develop.hsbc.com/ob-api-overview/api-overview-5

However, I only got empty files and lots of error messages. Happy to share YAML and error log.

falko commented 1 year ago

Here is the error log output.log

christian-konrad commented 1 year ago

@falko super useful use case, I will take a look into what's happening and give it a fix

christian-konrad commented 1 year ago

@falko I tested it with some of their specs (e.g. PIB_Accounts_Swagger.yml) and it worked.

Are you running on Linux/Mac? The generator creates a .camunda dir in your target dir, which is probably hidden due to your OS settings. (Probably a thing we should change in the generator)

falko commented 1 year ago

@christian-konrad I'm on Linux. I routed the output in an own directory. The FEEL files had contents. The JSON files where all empty

christian-konrad commented 1 year ago

@falko thanks, I will give it a try in a Linux environment, I guess the shell script does not work well on Linux.

saig0 commented 9 months ago

@christian-konrad there is an open PR that fixes the bug. :tada: Please have a look.