ScottLogic / openapi-forge

⚒️🔥 Effortlessly create OpenAPI clients, in a range of languages, from the fiery furnace of our forge
8 stars 7 forks source link

CSharp generator using local openapi-forge for generation instead of the global version. #125

Closed jhowlett-scottlogic closed 2 years ago

jhowlett-scottlogic commented 2 years ago

When testing the CSharp generator locally or in CI/CD the forge that is used is the CSharp local package instead of the forge that instigated the testing. This is because the forge command is made in the CSharp generator.

Possible Solutions

  1. Move out of the CSharp generator at point of use forge command and then back to original position as to not affect any subsequent shell commands (ensure this will work on all systems [Windows, Linux]) (Set cmd to git bash so that the commands are unified between systems? this is done for npm shell type to ensure robustness).
  2. Uninstall openapi-forge module from CSharp generator for duration of testing and then reinstall it. (last resort, this will increase testing duration considerably)