You must have at least v12.x of Node.js to run the OAS generator.
- Open a new terminal/command prompt window and run the command 'brew install swagger-codegen'
- navigate to the path where you want to generate the code. In this project we have saved the files in the path 'museClient'. e.g. cd /museClient
- paste the command 'swagger-codegen generate -i SonosControlApi.json -l javascript -o /tmp/api --additional-properties useEs6=true'.
- paste the command 'cp /tmp/api/{api.js,configuration.js} .'. This will copy the files generated from the previous command.