Skip to content

mix openapi.spec.json task could not start application. #427

Description

@alishir

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions