swift-openapi-generator: Running swift-openapi-generator via CLI should not need a openapi-generator-config.yaml file

Motivation

I tried to run the CLI tool via swift run only to find out I still need a openapi-generator-config.yaml file. I had not expected that, because what is the added value of passing it via the CLI if I need the config anyway? I would love to use the CLI without config file, so that I can generate the things I want/need in (for example) a Makefile.

Proposal

Separate the CLI from the openapi-generator-config.yaml file, or at least let it be another option that doesn’t mutually include each other.

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 17

Most upvoted comments

Sorry for my late response!

It was the first, but I didn’t realise I could keep the dependency and remove the plugin, so I think I got there! Thank you both so much for your help, much appreciated.