Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

AsyncApi generator duplicate events when regenerate the catalog with different event version

Open
#136 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
44/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api

Research direction

Start by locating the AsyncAPI generator entry point and the regeneration logic that writes service.md, then reproduce the issue by changing x-eventcatalog-message-version from 1 to 2. Done means regeneration removes the obsolete version and service.md lists only the currently defined event version; add or update a regression test if the generator has coverage for this output.

Written by the indexing model from the issue text.

Description

I tried this:

Starting with an AsyncAPI file that defines an event called myEvent and includes the following metadata: x-eventcatalog-message-version: "1"

When I update the message version to: x-eventcatalog-message-version: "2"

I notice that the service.md file shows a duplicated dispatched message:

sends:
  - id: myEvent
    version: '1'
  - id: myEvent
    version: '2'
This happened:

The old message version (which no longer exists in the AsyncAPI file) is still present in the service.md file, causing a duplication of the dispatched event.

I expected this:

I expected the AsyncAPI file to be the source of truth, meaning the service.md should only include event versions that are currently defined in the AsyncAPI file.

Is there a workaround?

No response

Anything else?

No response

EventCatalog Version

No response

Node.js Version

No response

Platform(s)

No response

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.
Dominant language
TypeScript
Stars
15
Forks
15
Avg merge
3m
Merged PRs (30d)
7

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from event-catalog/generators

All issues in event-catalog/generators

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.