I have a project that connects to a message broker on startup. When I tried to generate API specs using mix openapi.spec.json --spec MyProj.ApiSpec, I got the following error, because my application could not connect to the broker from the build server.
** (Mix) Could not start application my_proj: MyProj.Application.start(:normal, []) returned an error: shutdown: failed to start child: MyProj.BrokerConn
Do you know how should I generate API spec without trying to connect to the broker?
I have a project that connects to a message broker on startup. When I tried to generate API specs using
mix openapi.spec.json --spec MyProj.ApiSpec, I got the following error, because my application could not connect to the broker from the build server.Do you know how should I generate API spec without trying to connect to the broker?