Skip to content

OpenAPI: A service with only consumering openapi contracts is not generated #423

Description

@hartmanjan1970

I tried this:

When i have a service configured to be generated with OpenAPI generator which has no path to an openapi contract the service is not generated.

I have a service which only consumes OpenAPI and does not provide a Rest interface is not generated.

    [
            '@eventcatalog/generator-openapi',
            {
                domain: {id: 'MyDomain', name: 'My Domain', version: '0.0.0'},
                saveParsedSpecFile: true, 
                parseChannels: true,
                debug: true,
                services: [
                    {
                        id: 'my-only-consuming-openapi-service',
                        consumers: [
                            {id: 'other-providing-service'}
                        ]
                    },
              }
    ]

This happened:

The service is not generated

I expected this:

I would expect the service always to be generated, even if it does not proivide and does not consume an openapi contract.

Is there a workaround?

There's no workaroud

Anything else?

No response

EventCatalog Version

"@eventcatalog/core": "4.2.3",      "@eventcatalog/generator-openapi": "7.12.12",

Node.js Version

v22.22.0

Platform(s)

Linux

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.

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